#.abishek
1 messages · Page 1 of 1 (latest)
Hi there!
Hi
What do you mean by "console debug outputs for google pay"? Can you share an example?
Got it. Unfotunately no there's no options to change what is being logged in the browser console.
ok
got another question regarding using web elements for graduated and volume subscription
i am using web elements and creating a payment intent. When i create a payment intent for a graduated subscription or volume subscription, do I need to specify the quantity in advance?
If you are using Subscriptions then you shouldn't create any PaymentIntent. The Subscription will create them automatically for you.
i am sorry, I am creating a subscription using the subscriptions->create( and I am passing the following data to it
$data = [
'customer' => $stripeCustomer->id,
'items' => [
[
'plan' => $price->stripe_id,
],
],
'payment_behavior' => 'default_incomplete',
'payment_settings' => ['save_default_payment_method' => 'on_subscription'],
'expand' => ['latest_invoice.payment_intent'],
];
once I do that, I either pull the client secret using $stripeSubscription->pending_setup_intent or $stripeSubscription->latest_invoice->payment_intent->client_secret
$stripeSubscription->pending_setup_intent if the subscription has trial days and $stripeSubscription->latest_invoice->payment_intent->client_secret if its a straight forward subscription purchase when a customer already has a payment method setup
once I do that, I either pull the client secret using $stripeSubscription->pending_setup_intent or $stripeSubscription->latest_invoice->payment_intent->client_secret
Yes, that's correct!
is there any differnt do I need to do for graduated or volume subscription from the above code?
like defining the quantity when creating the subscription?
Indeed you need to set the quantity when you create the Subscription. By default it's set to 1.
ok, since I have 'payment_settings' => ['save_default_payment_method' => 'on_subscription'], and if the subscription has trialdays will stripe automatically charge the customer once the trial is over using the payment method being setup?
Correct.