#benjaminhull-subs

1 messages · Page 1 of 1 (latest)

pallid kite
#

Hi there! Are you using a trial for your Subscription or a SetupIntent to collect payment details?

queen nimbus
#

no trial - it bills £4 straight after completing the payment challenge

#

an intent is created yes

pallid kite
#

This sounds like 3DS is being completed which is hosted by the issuer so we likely don't have control of what they are showing here, but you do you have a Subscription ID that I can take a look at?

queen nimbus
#

yes one moment

#

Price ID: price_1L1BTkIUvDbaGbBT41R4268l

#

is that what you needed?

#

that's the only price configured for the subscription product

pallid kite
#

The Subscription itself should look like sub_xxxxx

queen nimbus
#

sub_1L1CjuIUvDbaGbBT5Ud9YTkS

pallid kite
#

Thanks let me take a look

queen nimbus
#

cheers

pallid kite
#

Ah okay, so you are collecting card details using a SetupIntent so that is why they see the 0 GBP auth from the bank... that is how we authorize cards when there isn't a charge involved.

#

The paymentmethod is then used later for the Subscription.

queen nimbus
#

I see yes

pallid kite
#

If you are going to charge for the Subscription while the customer is on-session, then you should change your flow here to confirm the PaymentIntent from the Invoice that the Subscription generates.

#

Instead of using previously collected card details.

#

You would confirm client-side using Stripe JS when the card details are entered.

queen nimbus
#

ok, I see - we are using Laravel's Cashier. Are you familiar with that at all?

pallid kite
#

Ah not intimately but that may be limiting, yes.

queen nimbus
#

hmm ok

pallid kite
#

I think you can still do the flow I described above with Cashier

queen nimbus
#

ok

#

can you break it down a little more for me?

pallid kite
queen nimbus
#

I am partially familiar with this page

pallid kite
#

That is the flow that I'm talking about. When the customer clicks "pay" you create the Subscription server-side and then pass the latest_invoice.payment_inent.client_secret back to your client and confirm it using Stripe JS (looks like you are just using Card Element with SetupIntents right now).

#

That will set the new PaymentMethod as the default for the Sub automatically.

queen nimbus
#

ok thanks for this

#

think I need to do some more reading up on all you've shared

pallid kite
#

What you are using now works fine... but if you want to avoid the confusion during 3DS then you would switch to the flow I described above as then 3DS will be performed on the initial payment (instead of when collecting card details prior)

queen nimbus
#

ok, great

#

so you're suggesting that we do one initial single payment, and following that payment a subscription is added for future payments?

pallid kite
#

No I'm talking about the initial Subscription payment

#

When you create a Subscription a PaymentIntent will also be created for the first payment for the Subscription.

queen nimbus
#

ok I see

pallid kite
#

You would collect card details and pay for the first invoice all in one step.

queen nimbus
#

ok - and I'm using some kind of generic blank paymentIntent, is that right?

pallid kite
#

The Subscription will generate an Invoice which will generate a PaymentIntent, yes.

queen nimbus
#

ok, great - I think I get it

#

thanks for this