recordPaymentMethodAttachedMutation
Persist a freshly-attached PaymentMethod into the local cache so subsequent reads of Me.paymentMethods don't need a Stripe call. Called by the client right after confirmSetup resolves; idempotent with the payment_method.attached webhook backstop.
Arguments
paymentMethodID!Returns
RecordPaymentMethodAttachedResult!
See RecordPaymentMethodAttachedResult for the full shape.
Try it
Example
Query
mutation RecordPaymentMethodAttached($paymentMethod: ID!) {
recordPaymentMethodAttached(paymentMethod: $paymentMethod) {
__typename
}
}
Variables
{}
POST
https://go.sessions.website/api/graphqlrecordPaymentMethodAttached