Broadleaf Microservices
  • v1.0.0-latest-prod

Preparing a PaymentTransactionServices Payment for Stripe ACH

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

The frontend must first create a Stripe PaymentIntent and then leverage Stripe.js to attach an ACH payment method to the PaymentIntent. Once this is completed, the Broadleaf Payment representation can be created including the following properties:

{
  ...
  gatewayType: "STRIPE",
  type: "ACH",
  paymentMethodProperties: {
   	"PAYMENT_INTENT_ID":"paymentIntent.id",
	"ONLINE_MANDATE":"true"
	"ACCEPTED_AT": getUnixTimestampInSeconds()
  },
  isSingleUsePaymentMethod: true,
  ...
}
Note
Also see how to add a payment via the Commerce SDK.