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

[MBL-1175] CreateCheckout & CreatePaymentIntent Mutations #1926

Merged

Conversation

scottkicks
Copy link
Contributor

📲 What

For the upcoming Post Campaign Pledging work, we're going to be implementing 4 new mutations, CreateCheckout CreatePaymentIntent, ValidateCheckout, and CreateBackingOnSession

I'll add PRs to support these as the backend implements them. This PR adds support for CreateCheckout and CreatePaymentIntent.

🤔 Why

For more context around what these mutations will be used for and why we need them give this a read: https://kickstarter.atlassian.net/wiki/spaces/PAYM/pages/2586443778/Validations+Approach+1+Separate+validations+from+Checkouts+Apply+service+client-side+confirmation#Mobile-proposal

🛠 How

More in-depth discussion of the change or implementation.

👀 See

No UI changes

@scottkicks scottkicks added this to the release 5.13.0 milestone Feb 1, 2024
@scottkicks scottkicks self-assigned this Feb 1, 2024
@nativeksr
Copy link
Collaborator

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

@scottkicks scottkicks marked this pull request as ready for review February 1, 2024 17:00
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes LGTM, but are the extra adapters for input and output envelopes necessary? The GraphQL objects are very small, and they appear to map 1:1 to your envelopes and your input adapters. It seems like you could just use the GraphQL objects directly and save a bunch of extra code and tests to maintain.

My understanding is that the adapter/envelope mapping pattern is only if a GraphQL object needs to map to an API V1 object for compatibility reasons.

@scottkicks scottkicks merged commit 8062d9a into main Feb 6, 2024
5 checks passed
@scottkicks scottkicks deleted the scott/feat/latepledge/checkout-and-paymentintent-mutations branch February 6, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants