#ddbg
1 messages · Page 1 of 1 (latest)
Hi there
Hello @lyric spade !
What integration are you using here?
on the front side there are using the android and ios sdk
Okay then no it won't be set as the default
Are you working with Subscriptions here?
yes with subs
but that's weird because all of our customers have their first PM tagged as default PM
Are you collecting the PaymentMethod when the Subscription is created or ahead of time and creating the Subscription later?
the sub is created afterwards
Hmm can you provide me one of those Customer IDs that I can look at?
Looking
Ah okay yeah so you actually are on our legacy integration using Tokens still (see: https://dashboard.stripe.com/logs/req_vOXrbSlEgYMoBq). So when you update a Customer to attach a Token via the source param then that sets the default (explained here: https://stripe.com/docs/api/customers/update#update_customer-source)
I'm not understanding what is source :/
source is the parameter that you are using to attach the Card Token to your Customer
Are you a developer?
yes
I'm on the back side
but the thing is when the customer is adding a card (PM) from the front side, the front is not calling our API to update the user (your link from above)
Gotcha well this is your backend. The customer adds the Token (Card) on your frontend and then you pass that Token to your backend to attach to the Customer via the request I showed you.
actually it's not the our process
Ah actually in this example that Card wasn't created on the frontend
Looks like that specific Card was created directly via your backend
Here is the request that created that Card: https://dashboard.stripe.com/logs/req_FTRMpOogaJuEvc
that's weird, we will do some other tests with the front to be sure, will keep you posted 🙏
one last question @lyric spade
Sure
when there's a PM default update, are the subs (created with another PM) will charge automatically the new default PM or do we have to update the sub from the API?
They will use the new default PM unless you are explicitly setting a default PM on the Subscription itself
ok perfect! Thanks a lot @lyric spade !