Skip to content

Add InitializePaymentRequestAsync method for stripe#143

Merged
amrarick26 merged 1 commit into
ordercloud-api:devfrom
erincdustin:strip_payment_intent
Jun 17, 2025
Merged

Add InitializePaymentRequestAsync method for stripe#143
amrarick26 merged 1 commit into
ordercloud-api:devfrom
erincdustin:strip_payment_intent

Conversation

@erincdustin

Copy link
Copy Markdown
Contributor

This PR introduces a new method, InitializePaymentRequestAsync(), to the Catalyst Stripe integration. It's designed to support advanced Stripe payment flows (e.g, Stripe Elements or Payment Element) by returning a client_secret used to initialize the Stripe iframe on the frontend.

New Features
InitializePaymentRequestAsync()

  • Accepts an AuthorizeCCTransaction request.
  • Creates a PaymentIntent using Stripe’s API with AutomaticPaymentMethods.Enabled = true.
  • Returns a CCTransactionResult with the Stripe client_secret populated in the TransactionID property.

Usage

  • The TransactionID (which holds the client_secret) can be passed directly to the frontend and used to initialize Stripe Elements.
  • Designed to work with frontend setups using stripe.confirmCardPayment().

@erincdustin erincdustin requested a review from amrarick26 June 17, 2025 15:39
@amrarick26 amrarick26 merged commit 9898d66 into ordercloud-api:dev Jun 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants