Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
import { getCustomExchange } from "./Modifiers";
const billingAddressSE = {
address: {
line1: "1 Main St",
city: "Stockholm",
zip: "11122",
country: "SE",
first_name: "John",
last_name: "Doe",
},
email: "[email protected]",
phone: {
number: "9123456789",
country_code: "+46",
},
};
export const connectorDetails = {
bank_redirect_pm: {
// Required supported-method config for the Trustly confirm flow. The CI
// selection runs only this bank redirect flow for Trustly.
Trustly: getCustomExchange({
Request: {
payment_method: "bank_redirect",
payment_method_type: "trustly",
payment_method_data: {
bank_redirect: {
trustly: {
country: "SE",
},
},
},
currency: "EUR", // Trustly requires EUR for Swedish bank redirect payments.
billing: billingAddressSE,
},
Response: {
status: 200,
body: {
status: "requires_customer_action",
payment_method_type: "trustly",
connector: "trustly",
},
},
Configs: {
skipPaymentMethodStatusAssertion: true,
},
}),
},
};