#janofant

1 messages ยท Page 1 of 1 (latest)

reef stagBOT
gentle cargo
#

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?

edgy creek
#

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

gentle cargo
#

Yes so you would want to pass in the newly generated Payment Method Id, which belongs to the newer account instead

edgy creek
#

yes, then it should work. But what do I need to do?

gentle cargo
#

Um so has new PaymentMethod Id generated?

edgy creek
#

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

gentle cargo
#

When you migrated the customers, did you migrated the Payment Method Ids? How do you observe it is created?

edgy creek
gentle cargo
#

Could you provide an example? ie. old Payment Method Id, new Payment Method Id

edgy creek
#

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

gentle cargo
#

Do you have the errored request on the new system?

edgy creek
#

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

gentle cargo
#

Can you see this link (does it open in your Dashboard of your new account?)

edgy creek
#

yes

#

it shows me the error I mentioned

#

resource_missing - payment_method
No such PaymentMethod: 'pm_1NjVZIH6wjZk3CzIQBLtvCKy'

gentle cargo
#

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

edgy creek
#

so WooCommerce thinks everything remains the same

#

is that possible?

gentle cargo
#

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

edgy creek
#

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

edgy creek
gentle cargo
#

I am a bit confused... So did you call this request?

edgy creek
#

yeah

#

I opened the link

#

but there is just the log of the failed payment

gentle cargo
#

Yes but do you own the code which triggered this request?

edgy creek
#

it shows me this

#

I dont know what you mean by "do you own the code"

gentle cargo
#

Probably you don't ๐Ÿ™‚ Is there any developer working for you to integrate WooCommerce, or how do you integrate WooCommerce?

edgy creek
#

from Stripe

#

you just have to insert the live key, public key and webhook

gentle cargo
#

Into WooCommerce setting page?

edgy creek
gentle cargo
#

I see ๐Ÿ™‚ So WooCommerce is the one own the code. Sorry for the confusion

edgy creek
#

ah I am sorry

#

yes

gentle cargo
#

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"

edgy creek
#

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

gentle cargo
#

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

edgy creek
#

hm ok

#

so this is the log from woocommerce for the error:

gentle cargo
#

That's a lot of irrelevant info IMO. Let's just give them req_PuZnXoHPrPKtOC for investigation

edgy creek
#

Ok I will do so, thank you