#hiru99 - payment method
1 messages · Page 1 of 1 (latest)
customer is stored card details already so how can i use this card for payment method creating
now at checkout time i have cradId mention in screenshot and i want to use that for payment method
@unborn adder
?
@unborn adder
@native radish
Sorry for the delay.
The card object should have a token tok_xxx. And you can use that to create a charge: https://stripe.com/docs/api/charges/create
However this is an old integration. Now we recommend using PaymentIntent and SetupIntent instead.
first @native radish is told me that use payment method so first of all your company is decide what should we do do make stripe company wthout knowing poor service
i want to create payment after that so send me the solution now
immediately
@unborn adder
@unborn adder
@unborn adder
Please be patient, I have many people I need to help at the same time. I'll have a look soon.
i need solution
So one option is to create a charge, like I said before:
const charge = await stripe.charges.create({
amount: 1000,
currency: "USD",
source: "tok_xxx", // the token of the card
});
so like this can i create payment method?
the code that my colleague sent is the way to create a charge
what are you trying to achieve so I could help guide you through it?
see first i want to send customer payment directly in connect account . so for that i have already saved card details i have card_id like "card_1233" so what should i do now for send payment directly in connect account through card_id
@sharp stream
do you want to create the Payment on behalf of your Connect Account(Destination Charges https://stripe.com/docs/connect/destination-charges) or do you want the Connect Account to own the Charge/Refund(Direct Charges https://stripe.com/docs/connect/direct-charges) ?
could you please share the request id? here's how you can find one https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
i am doing what i already mention above so please read first and solve this
in payment intent where i can put payment method id for creating payment intent successfully
read first
and see abouve screenshot
@sharp stream
if you wouldn't like to share your request Id I wouldn't be able to help you
please abide by the code of conduct of this channel and be respectful, we're happy to help you out but you need to provide the information we ask of you so we could do our job
i don't want only this api i am generally talking about payment so why you don't understand that and you give me warning if you don't understand my problem so you want to understand first that's not my problem it's yours
Please refrain from having such an attitude. We're trying to help you here
The error is pretty verbose, and @sharp stream has asked you to share the req_xxx so they can help debug you
forget this
send me one answer
in payment intent where i can put payment method id for creating payment intent successfully
?
You're doing it already: the payment_method parameter
The likely issue you have is the pm_xxx object you're passing doesn't exist on the account you're using. Which is why we've asked for you to share the req_xxx or pm_xxx ID here so we can verify
i am doing like that but i got error
We can't help you further without what I've requested above
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_weIWLwJebB9P1M
my code is this
acct_1KicimCwocdu61MQ made this API request.
The Payment Method (pm_1LEA602SCaQd7EIec52Ewh4m) belongs to a different account acct_1LDLwQ2SCaQd7EIe.
Are you trying to create a Payment Intent on the connected account? (acct_1LDLwQ2SCaQd7EIe)
how can i pass customer id in payment intent
Let's work through the issue you have right now before adding further complexity
Can you answer this
What you need to do is pass the stripeAccount parameter when creating your Payment Intent: https://stripe.com/docs/connect/authentication
stripe.paymentIntents.create({
amount: 100,
currency: 'usd'
}, {
stripeAccount: 'acct_xxx'
})
okay thanks for replying me and helping me
np. In future, just have a little patience and provide what we're asking for. It makes the whole experience a lot more satisfying for everybody 🙂