Broadleaf Microservices
  • v1.0.0-latest-prod

Preparing a PaymentTransactionServices Payment for the Adyen

To execute the Adyen transactions via PaymentTransactionServices, we must first create a Payment in PaymentTransactionServices.

An example of the request to create a Payment:

{
  name: 'ADYEN',
  type: 'CREDIT_CARD',
  gatewayType: `ADYEN`,
  amount: {
      amount: 10,
      currency: 'USD',
  },
  isSingleUsePaymentMethod: true,
  shouldArchiveExistingPayments: true,
  paymentMethodProperties: {
    sessionId: '{Adyen session ID}',
    returnUrl: 'https://storefront.com/api/cart-operations/checkout/{cart_id}/payment-callback/ADYEN?tenantId={tenant_id}&applicationId={application_id}',
  },
  billingAddress: {...},
}
Note