#hiru-Payment

1 messages · Page 1 of 1 (latest)

gusty musk
wraith scaffold
#

req_36aqhyZ09mmFWI

gusty musk
#

Thanks. This PaymentIntent is not generated in your account, and that's why the error.

#

You can only access the resources generated in your account.

wraith scaffold
#

i creating payment intent like this so how can it not generated in my account

gusty musk
#

Did you pass the same stripeAccount when you call stripe.paymentIntents.retrieve ?

wraith scaffold
#

no

gusty musk
#

You need to pass the same stripeAccount in the request when retrieving the PaymentIntent

wraith scaffold
#

okay , but why my payment is not shown here in all payments

gusty musk
#

You are making a direct charge, the PaymentIntent will be created in the connected account, not your account.

wraith scaffold
#

so i will see this payment in stripe connect account only?

#

so i make direct charge so is this safe to use (direct payment intent in connect) ? ya charges and transfer is better for connect payment?

#

@gusty musk

gusty musk
wraith scaffold
#

and i have one solution

#

one query

gusty musk
#

Sure, what's your question?

wraith scaffold
#

here i am creating card token but when i entered wrong card number in this token so i didn't receive any response or error so how can i validate is cardtoken created or not can you solve this? exp_month: cardData.cardExpMonth,

#

please ignore exp_month: cardData.cardExpMonth,

gusty musk
#

Card validation is not performed during tokenization.

#

Are you using Tokens API to collect payment method from your customers?

wraith scaffold
#

see first i am creating cardtoken and after i create resource with customer id and after i get card id and after successfully card i used card id to create payment method and use this payment method id for payment intent .

#

is this is perfect process ?

gusty musk
wraith scaffold
#

but i need all cards to my application like this thats why i saved all card details

gusty musk
wraith scaffold
gusty musk
wraith scaffold
#

but in above process i already create payment method and payment intent for transfer payment in connect account so is this method is pefect i think?

#

*perefect

gusty musk
#

I'd suggest you to go through the doc that I sent earlier to understand the impact of SCA requirement to your business. My advise is to upgrade to the new PaymentIntent/SetupIntent API so that your integration is future proof.

wraith scaffold
#

okay sure