#hiru99 - payment method

1 messages · Page 1 of 1 (latest)

unborn adder
#

Hi there!

#

What do you mean by "if i already created card "?

dawn warren
#

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

unborn adder
#

Sorry for the delay.

#

However this is an old integration. Now we recommend using PaymentIntent and SetupIntent instead.

dawn warren
#

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

dawn warren
#

immediately

#

@unborn adder

#

@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.

dawn warren
#

i need solution

unborn adder
#

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
});
dawn warren
#

so like this can i create payment method?

sharp stream
#

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?

dawn warren
#

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

sharp stream
dawn warren
#

why this is not working?

#

i am doing like this. but i got error

#

@sharp stream

sharp stream
dawn warren
#

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

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

dawn warren
#

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

quasi tapir
#

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

dawn warren
#

forget this

#

send me one answer

#

in payment intent where i can put payment method id for creating payment intent successfully

#

?

quasi tapir
#

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

dawn warren
quasi tapir
#

We can't help you further without what I've requested above

dawn warren
#

how can i get request

#

?

quasi tapir
dawn warren
#

req_weIWLwJebB9P1M

dawn warren
quasi tapir
# dawn warren req_weIWLwJebB9P1M

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)

dawn warren
#

how can i pass customer id in payment intent

quasi tapir
#

Let's work through the issue you have right now before adding further complexity

dawn warren
#

wait

#

how can i pass acct_xxx in payment intent?

quasi tapir
dawn warren
#

okay thanks for replying me and helping me

quasi tapir
#

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 🙂