Magidoc

addStripeObject
Mutation

Create stripe object using Stripe key associated with action page owning org. Pass any of paymentIntent, subscription, customer, price json params to be sent as-is to Stripe API. The result is a JSON returned by Stripe API or a GraphQL Error object. If you provide customer along payment intent or subscription, it will be first created, then their id will be added to params for the payment intent or subscription, so you can pack 2 Stripe API calls into one. You can do the same with price object in case of a subscription.

Arguments

#

actionPageId

Non-null

customer

Parameters for Stripe Customer creation

paymentIntent

Parameters for Stripe Payment Intent creation

price

Parameters for Stripe Price creation

subscription

Parameters for Stripe Subscription creation

testing

Use test stripe api keys

Response

#

Returns Json !.

Example

#

    
  

3

    
  

3

    
  

3