Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct reference between intent and checkouts #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YohDeadfall
Copy link
Member

Since each CheckoutSession object is related to the corresponding PaymentIntent object, and it's expected to have at leas one session per intent, I changed the code to use payment intent ids instead of looking up by the customer id.

Another change is avoiding checkout sorting at all, but selecting the latest one for each intention.

Last one but not least, I added dots to the end of two expect` messages.

@mockersf mockersf requested a review from cart June 17, 2024 22:44
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.

1 participant