Skip to content

Commit

Permalink
[MBL-1392] Add checkout Id to create payment intent call (#2035)
Browse files Browse the repository at this point in the history
* [no-jira]: Updated schema.json

* add the checkout id to the create payment intent mutation

* update config to use defined tag instead of default for circle ci

---------

Co-authored-by: Yun <[email protected]>
  • Loading branch information
mtgriego and ycheng-kickstarter authored May 9, 2024
1 parent 1a307a4 commit 67362a7
Show file tree
Hide file tree
Showing 6 changed files with 3,090 additions and 690 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ base_job: &base_job
executor:
name: android/android-machine
resource-class: xlarge
tag: default #https://circleci.com/developer/images/image/cimg/android
tag: 2024.01.1 #https://circleci.com/developer/images/image/cimg/android
working_directory: "~/project"
environment:
TERM: dumb
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/graphql/checkout.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ mutation CreateCheckout($projectId: ID!, $amount: String!, $rewardIds: [ID!], $l
}
}

mutation CreatePaymentIntent($projectId: ID!, $amount: String!, $paymentIntentContext: StripeIntentContextTypes) {
createPaymentIntent(input: { projectId: $projectId, amount: $amount, paymentIntentContext: $paymentIntentContext } ) {
mutation CreatePaymentIntent($projectId: ID!, $amount: String!, $paymentIntentContext: StripeIntentContextTypes, $checkoutId: ID!) {
createPaymentIntent(input: { projectId: $projectId, amount: $amount, paymentIntentContext: $paymentIntentContext, checkoutId: $checkoutId } ) {
clientSecret
}
}
Expand Down
Loading

0 comments on commit 67362a7

Please sign in to comment.