Charge with card
Closed this issue · 1 comments
Harrrrry commented
I am unable to charge the added card for the customer.
My scenario :
- I create a customer and then add the card to the customer.
- get the card list.
- Do the payment after selecting one card from the list.
1 and 2 points are working but I am unable to do the payment with a card.
Can you please provide me the code for that?
I have a card id, customer id what parameter I sent to the charge API?
Thanks,
danfowler commented
Closing due to lack of activity. If you are still unable to get this working, can you provide the error message you are running into when trying to do a payment with a card.
Please refer to the example code here
omise-node/examples/as_promises.js
Line 31 in 925d0a9
Note, if you want to charge a specific card on a customer, you will need to pass both customer
and card
.