#jay123-payment methods

1 messages · Page 1 of 1 (latest)

gentle cosmos
#

To reuse a Payment Method you have to attach it to a customer - otherwise, they can only be used a single time

tropic void
#

I am just authorizing it and will capture when shipping

#

But attach api is giving error for few orders, for few its working fine

gentle cosmos
#

Do you have an example request ID where attachment fails?

tropic void
#

POST /v1/payment_methods/pm_1JwAXhCEdgcfoYmNBreVd6Xl/attach

#

req_hEAIdWlLzJo7Nc

gentle cosmos
#

You need to do the attachment before you use the Payment Method for payment - for that particular Payment Method you used it in a Payment Intent first, and then tried to attach it, which won't work

tropic void
#

But it is working for some of the orders

#

We are using the Shopify, Payment Intend created by their integration

gentle cosmos
#

Do you have an example where it worked?

tropic void
#

I just checked, it shows error for those orders too. But Customer has the payment method for the order, whose payment method is pm_1Jv6NcCEdgcfoYmN6s6Gf2pO

#

But other order doesn't have payment method, not sure why ? Because we have same implementation for all the orders.

#

Few Orders, we have customer with Payment Method but not for all. Due to this, we are not able to charge all the customer.

gentle cosmos
#

That Payment Method has also been consumed and also can't be used again - if you're using Stripe through Shopify I'd recommend you actually contact their support team for more information on how you can enable Payment Methods to be attached + used in the future

tropic void
#

Shopify Support team says they don't provide option to save credit card for future use

gentle cosmos
#

If they don't support this, then you won't be able to attach any payment methods created by Shopify to a customer

#

Your only option would be to not use Shopify

tropic void
#

stripe does not offer this option?

#

as a third party integration?

gentle cosmos
#

We do offer this option, but if you're using Shopify then they are the ones in control of how you use Stripe. If you were to integration directly against Stripe this would be easy for you to do

tropic void
#

there is only 1 option to integrate with stripe in shopify

#

We will check if any custom integration available with shopify orders

#

May be I will contact you again if I have any doubt or have any more information about the existing integration

gentle cosmos
#

Again, if you're using Shopify these are question you'll likely have to ask them