#.abishek

1 messages · Page 1 of 1 (latest)

native gullBOT
pallid stump
#

Hi there!

delicate slate
#

Hi

pallid stump
#

What do you mean by "console debug outputs for google pay"? Can you share an example?

delicate slate
pallid stump
#

Got it. Unfotunately no there's no options to change what is being logged in the browser console.

delicate slate
#

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?

pallid stump
#

If you are using Subscriptions then you shouldn't create any PaymentIntent. The Subscription will create them automatically for you.

delicate slate
#

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

pallid stump
#

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!

delicate slate
#

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?

pallid stump
#

Indeed you need to set the quantity when you create the Subscription. By default it's set to 1.

delicate slate
#

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?

pallid stump
#

Correct.