#janofant
1 messages ยท Page 1 of 1 (latest)
The copy process assigns new object IDs of the same payment type to payment data. For example, the process assigns a new card object ID to all card objects and new payment method object IDs to all payment method objects
So new / different ID is expected
What error do you have specifically?
resource_missing - payment_method
No such PaymentMethod
and in the log is the payment method from the old Stripe account and not the new one
Yes so you would want to pass in the newly generated Payment Method Id, which belongs to the newer account instead
yes, then it should work. But what do I need to do?
Um so has new PaymentMethod Id generated?
Yeah there is a new PaymentMethod ID
maybe I should explain everything more detailled.
I have got a WooCommerce Store where customers buy regularly via an subscription model. So new orders are generated by WooCommerce regularly. I connected it via API with Stripe. Now I need to change my Stripe account but want to make sure that the payments get through without any issues. So I migrated all the customers from the old to the new Stripe account and changed all the keys in WooCommerce. But now the orders get in but the payment does not work - as far as I can see because of the Payment Method IDs
When you migrated the customers, did you migrated the Payment Method Ids? How do you observe it is created?
No I did not, but if this is possible to migrate them as well I would love to do so ๐
I just know that it is a newly created one, because it is different from the payment method ID from the old Stripe account
Could you provide an example? ie. old Payment Method Id, new Payment Method Id
yeah sure
new: pm_1NkQdpH6ntDuDV5V6bbvu2ra
old: pm_1NjVZIH6wjZk3CzIQBLtvCKy
and in the log for the payment (in the new account) the system is looking for the old payment method ID. Obviously it cant be found, beceause it has changed
Do you have the errored request on the new system?
so the error is:
resource_missing - payment_method
No such PaymentMethod: 'pm_1NjVZIH6wjZk3CzIQBLtvCKy'
so the system is looking for the old ID
the system tried it three times
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you see this link (does it open in your Dashboard of your new account?)
yes
it shows me the error I mentioned
resource_missing - payment_method
No such PaymentMethod: 'pm_1NjVZIH6wjZk3CzIQBLtvCKy'
Yes so from its parameters you can see you passed
payment_method: "pm_1NjVZIH6wjZk3CzIQBLtvCKy",
You would want to find the exact code sending this request, and debug to see why it's passing the old value here
I guess that WooCommerce sends the request with this payment method ID, because like I said it is a renewal order
so WooCommerce thinks everything remains the same
is that possible?
Probably (?) Not sure how WooCommerce implement this. Do you call the API yourself via their plugin, or they call this API based on some of the setting you set?
Sorry not familiar with WooCommerce
But according to the WooCommerce Support they cant change anything. They said that I have to pay attention that Stripe migrates all the Card IDs (I think they mean the Payment Method ID) and Customer IDs when I change the stripe account
The Customer IDs remained the same, so thats fine. But the payment method ID changed. Is there any way to migrate the customer data and also migrate the payment method ID? Or edit it after the migration manually? The last option would be very annoying but at least a possibility
It is connected via the API from stripe
I am a bit confused... So did you call this request?
this one
Yes but do you own the code which triggered this request?
Probably you don't ๐ Is there any developer working for you to integrate WooCommerce, or how do you integrate WooCommerce?
by your API
from Stripe
you just have to insert the live key, public key and webhook
Into WooCommerce setting page?
yes
I see ๐ So WooCommerce is the one own the code. Sorry for the confusion
Please reach out to WooCommerce, provide the request id above, and get them investigate for you. The question is "why do you send pm_1NjVZIH6wjZk3CzIQBLtvCKy instead of pm_1NkQdpH6ntDuDV5V6bbvu2ra"
yeah I already did that
like i said
they can't change the card and customer IDs and so they say, that we have to migrate them to the new stripe account
i am pretty sure that they mean the payment method id by card id
What they say doesn't really make sense to me. They own the code and they should know how to pass in the new Payment Method Id
I think you can/should push back
You already have the new Customer Id and new PaymentMethod Id. It's on them how to use the new values
That's a lot of irrelevant info IMO. Let's just give them req_PuZnXoHPrPKtOC for investigation
Ok I will do so, thank you