#shreyas-mulay_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1371998942086168680
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! That Payment Method ID belongs to a different Stripe Account.
Did you get a mapping file after the migration?
yes
Oh
Did you create the Payment Method on the old account?
Or was it supposed to be migrated with it?
yes we had to, and yes it was supposed to get migrated along
I suspect your Publishable Key in your frontend code is still from the old account (or, at least, it's from a different account).
Hi
I manage to trigger the build
but still getting the issue -- req_msYJ0zxfcgSad8
can you check what is that I am missing
Req id: req_4zrh9cwNEwDPwY
Error while upgrading or downgrading tier This property cannot be expanded because it doesn't exist: payment_intent.
Didnt get you
there are changes is it ?
ok lets forget that for now, we have a feature where user can upgrade or downgrade their tiers
can you check this instead
can you tell how to enable test mode ?
pm_1ROSwAFa8DSgVf3HwttXEKzJ is still belongs to another different account
acct_1HH5lxFa8DSgVf3H
ok ok
While req_msYJ0zxfcgSad8 is on acct_1RNsv6I061oVD8E5
gotcha maybe user did before I did anything
Can you tell me
how to enable test mode ?
It became Sandbox these day. You can just create a Sandbox account based on your Livemode account
ok ok
so actually I am doiugn liek this
customer: customer.id,
items: [{
price: <price_id>
}],
expand: ['latest_invoice.payment_intent']
});```
do you have a way to get the payment_intent from the subscriptions create API ?
@fervent lichen
Yes there is a way here
expand: ['confirmation_secret'] ?
when creating the subscription, I want payment_intent
can you help me please
it is bit urgent
Can you try to expand latest_invoice.payments instead? What do you see on there?
Sorry
doing it
I get payment object and inside it I get payments as the list and on 0th index i get the payment intent
Yep let's use it!
I actually want the client_secret on the payment_intent
to enale 3ds card
Hello you there ?
Ah okie, that would be confirmation_secret like the Doc mentioned
so it would be latest_invoice.confirmation_secret ?
invoice.confirmation_secret.client_secret
not the latest is it ?
For Payment Element integrations, especially Subscription integrations, that previously relied on expanding invoice.payment_intent.client_secret or latest_invoice.payment_intent.client_secret, you can now use the new invoice.confirmation_secret.client_secret field on the Invoice object by expanding confirmation_secret:
should be latest_invoice.confirmation_secret.client_secret
Please try
actualy I am checking the payment intent status object to have requires_action or requires_payment_method
so for that purpose I want the payment intent object
I see, so you want both them
yes sir
ok with this I got the client secret, but i need to trigger this on the payment intent object's status
we are close now
can you please try again bro
Yes so this should get you the PaymentIntent object, right?
yes but that is only having payment intent id
no status nothing
object which has data
okie can you expand latest_invoice.payments.data
expand: ['latest_invoice.confirmation_secret.client_secret', 'latest_invoice.payments.data']
This is the call to List Invoice Payments. You are expanding the Subscription, which is a different API
ok
THat somehow I fixed
now getting this error
This PaymentIntent is configured to accept payment methods enabled in your Dashboard. Because some of these payment methods might redirect your customer off of your page, you must provide a return_url. If you don't want to accept redirect-based payment methods, set automatic_payment_methods[enabled] to true and automatic_payment_methods[allow_redirects] to never when creating Setup Intents and Payment Intents.
This is coming when creating payment intent
amount: price.unit_amount,
currency: price.currency,
customer: customerId,
payment_method: paymentMethodId,
confirm: true,
});```
like this
is this for the 3ds secured card again ?