#SCIF

1 messages · Page 1 of 1 (latest)

plucky hingeBOT
near vortex
#

This works fine but recently I've got a bug report that a customer has updated his CC but payment was failed
Could you share the payment that is failed? How do you tell that the payment failure was related to the Street and Zip check?

muted plank
#

Ooops, sorry, that was my assumption 🙂

near vortex
#

Checking it now

muted plank
near vortex
#

Thanks for sharing! The decline was by the card issuer with transaction_not_allowed on this card

#

Ultimately, the final authorisation approval was by the card issuer and we don't have visibility on the exact failure reason

muted plank
#

Is there a chance we could make sure that new PM mounted and paid the subscription became overdue?

#

Otherwise it's a really bad UX for the customer — he input the CC details and was redirected back. So platform shown him «Your card successfully updated» and shows new numbers but by the end-of-the-day all those efforts are useless

near vortex
muted plank
#

What's about the case when a customer purchased a subscription and once next billing cycle came, the card has expired? Then the customer has input his new CC through the routine I described above. Bank has declined. But that happened 10-20 mins after input the details, so customer believe everything went through but it was not. As far as i can see, this is the example: https://dashboard.stripe.com/acct_1I0qgyCsh8lDYN4e/events/evt_3MVvyaCsh8lDYN4e0iFNY6j3

near vortex
#

How was that 10-20 mins after inputting the details when the timestamp was 1 month apart?

muted plank
near vortex
#

Sorry for missing this

#

Looking into it now

#

[2023-01-30 11:38:11 UTC] In evt_1MVvgdCsh8lDYN4erbDVQXxO, the payment method pm_1MVvgaCsh8lDYN4e4bdB7uBK was attached to the customer, but it wasn't set as the default_payment_method to the subscription

[2023-01-30 11:56:45 UTC] In the payment failure evt_3MVvyaCsh8lDYN4e0iFNY6j3, the payment method was deducted from the old default_payment_method pm_1MKgGJCsh8lDYN4ePY4HVsix of the subscription at that point of time

The default_payment_method of a subscription was only changed in https://dashboard.stripe.com/events/evt_1MXB42Csh8lDYN4eZnc6R6Dp on 2023-02-02 22:15:30 UTC

#

The reason of payment failure was the the payment method was charged to the old default_payment_method on the subscription

muted plank
#

Ahh, so changing the PM to default was required

muted plank
arctic juniper
#

Hi @muted plank I'm taking over

#

You can get the checkout session object from the API response when you create a checkout session.

muted plank
#

Yes, sure, it's done this way, but I'm asking about Stripe UI to obtain logs 🙂

#

I'm investigating the reason why PM was not set as default, could be misconfiguration in initial session creation params, so curious whether those logs are available on Stripe Dashboard

arctic juniper
muted plank
#

It's a REALLY huge storage 🙂 Any chance to filter?

#

I struggle to scroll so long

arctic juniper
#

Sure, there's a search bar

muted plank
#

Is it shown for owners only and not for Connect accounts?

arctic juniper
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

muted plank
#

The payment method was set as default one

arctic juniper
#

Is your account acct_1I0qgyCsh8lDYN4e?

muted plank
#

This is an account connected to my platform

#

This is a part of customer updated event:

#

By some reason subscription contains the old method. Even though the new one is attached to customer invoice.default_payment_method

arctic juniper
#

OK. You can also use the API to list and filter events generated on connected account
https://stripe.com/docs/api/events/list#list_events

Remember to specify a stripe_account in the request. By specifying a stripe_account, you are telling Stripe that you want to make an API call on behalf of a connected account. You can refer to this doc to learn more about making API request for connected account (https://stripe.com/docs/connect/authentication)

Learn how to add the right information to your API calls so you can make calls for your connected accounts.

muted plank
#

Please no need to explain basic things of Connect and API usage. That's known and well working

#

Please respond why the subscription has some weird PM different to customer's default PM

arctic juniper
#

Can you past the Subscription ID here?

muted plank
arctic juniper
muted plank
#

???

#

Sorry, are you following the discussion

#

?

arctic juniper
#

Can you send me the ID of the event when customer is set with a new default_payment_method?

The screenshot that you shared earliest showed a new default_payment_method set to the subscription, not customer.

muted plank
#

I am totally confused. I was thinking that it's enough to set a PM as a default for the customer, but now you mentioned a default_payment_method for the subscription.

arctic juniper
#

If your question is why the customer's default_payment_method is updated, It's updated by the platform, and you can use the request links that I sent earlier for details.

muted plank
#

My question is why customer's default method was not used for paying the subscription?

arctic juniper
#

That's because this subscription is created through Checkout and Checkout will collect a new payment method and set it as the default_payment_method of the subscription.

See my earlier explanation:

```pm_1MKgGJCsh8lDYN4ePY4HVsix was created during checkout(https://dashboard.stripe.com/logs/req_KR6LGAXn4Q23yt), to pay the first invoice of the subscription. (https://dashboard.stripe.com/logs/req_lHiVkSRKERzhXn). Once the payment succeeded. Checkout automatically set the pm_1MKgGJCsh8lDYN4ePY4HVsix as the default_payemnt_method of the subscription. ````

#

If your customer already have a default_payment_method and you want to use the same payment_method for new subscription. I'd suggest you directly create the subscription through Subscriptions API instead of using checkout session.

muted plank
#

If your customer already have a default_payment_method and you want to use the same payment_method for new subscription.

  1. Will the default be used for new subscriptions?? If not — what's the reason to have such entity as default_payment_method?

  2. My customer wants to not charge the cc they used for the initial payment. I was under impression that i should set up a new cc as invoice.default_payment_method. You are saying this is not the case (but apparently it works for my platform's checkout, not Stripe Checkout). What is the correct way to setup a new CC and use it for new payments (imho, default PM must be used) and for renewing of existing subscriptions (should I iterate over all existing subs to change the PM to new default one??)??

arctic juniper
#

For 1. If you are creating the subscription directly (e.g., through Subscription API) and you didn't specify the subscription's default_payment_method, Stripe will use the customer's invoice.settings.default_payment_method to pay the invoices generated by this subscription. (More details explained in https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method)

#

For 2. What do you mean by the initial payment? is the the first invoice payment that the customer pay during a subscription checkout session?

muted plank
#

RE #2: I'm looking for the way to use one CC for all actions

arctic juniper
#

All actions means recurring payments for all future subscriptions created for the customer?

muted plank
#

And all currently active subscription

arctic juniper
#

OK. You can set the customer's invoice_settings.payment_method and unset the default_payment_method and default_source of all existing subscriptions. Stripe will use the customer's invoice_settings.payment_method to pay the invoices generated by relevant subscriptions.

muted plank
#

So any subscriptions created using Stripe Checkout should also be updated with unsetting the default_payment_method?

arctic juniper
#

You are right\

muted plank
#

Ok, got it

#

Thanks. This is really weird but thanks for clarification!