forcedotcom / forcedotcom/b2b-commerce-on-lightning-quickstart

Stripe Payment Gateway Integration

Open
#23 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
191
Forks
211
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm trying to implement Stripe Integration for Lightning B2B Commerce Checkout flow.
The provided example of StripeAdapter tries to query the CardPaymentMethod in createAuthResponse() using Id from AuthApiPaymentMethodRequest to get the GatewayToken and assign it as a 'source' to create a Charge. However, AuthApiPaymentMethodRequest has blank Id, and there are no records of type CardPaymentMethod inserted during the checkout flow.
Can you please explain what I'm missing here? At what point in time do we get a Token from Stripe and when do we create a CardPaymentMethod records with this info saved in the GatewayToken field?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the StripeAdapter createAuthResponse() flow and how AuthApiPaymentMethodRequest and CardPaymentMethod are used during checkout. Clarify when Stripe returns a token, when the CardPaymentMethod is created, and how GatewayToken reaches the charge; document the resulting lifecycle and address the blank Id case.

Written by the indexing model from the issue text.

Assessment

Domain
payments
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.