#Sanjeev Sundaravarathan

1 messages ยท Page 1 of 1 (latest)

lyric jasperBOT
rose grail
#

Hello ๐Ÿ‘‹
Taking a look

frank oriole
#

Hi,

I created a payment method to the platform and when trying to add to customer like this getting the above error

rose grail
frank oriole
#

yes, thats right

rose grail
#

huh interesting, request params seems to be fine. Let me ask a colleague to take a look...

frank oriole
#

sure, thanks

alpine sluice
#

๐Ÿ‘‹ stepping in

#

So when you clone here you pass the platform's Customer ID

#

Then on the Connected Account you attach the newly created PaymentMethod to a new Customer on that account if you want to save it for future use

#

You don't pass the Customer on the Connected Account on creation

frank oriole
#

so the main reason we are doing this is to on a ongoing subscription if the customer wants to change the pm then UI will create that payment method on our platform and sends the PM_id to api where it adds it to subscription and the customer in that subscri[tion

alpine sluice
#

Sure you are trying to clone from your platform to Connected Account

#

So steps are:
1/ tokenize PM and attach to a Customer on platform
2/ create PM on Connected Account by passing the PM ID and Customer ID from your platform
3/ attach newly created PM on Connected Account to a Customer on Connected Account

frank oriole
#

sorry but is there a way we can do it without connecting the customer to platform please?

#

because we dont want to connect the subscription customer to platform

alpine sluice
#

Sure then you just tokenize directly on the Connected Account

#

Or you can clone without a Customer on the platform

#

Though that is just an extra step really from tokenizing directly on the Connected Account and is mostly unnecessary if you aren't storing the PMs on the platform

frank oriole
#

No, sorry with the current flow is there any way, where ui connects the PM to platform, and then api adding to customer who is not connected platform ?

alpine sluice
#

Yes

#

Just remove the Customer ID from the request that you performed above

#

That will create a new PaymentMethod on the Connected Account

#

Then you attach to a Customer on the Connected Account

frank oriole
#

sure, I will try that now and let you know

alpine sluice
#

Sounds good

frank oriole
#

Hey, thanks this worked

alpine sluice
#

๐ŸŽ‰