Stripe and Stripe Customer Portal - Duplicate Customer

Hi guys! I have a question…

In my app, the customer registers for free. At the time of registration, he receives a customer_id (through the Stripe Customer Portal plugin), creating a customer in Stripe.

When this customer switches to a paid plan and fills in their credit card details and “name on card” (via Stripe checkout), Stripe creates a new customer based on “name on card” and with a new customer_id.

As a result, I cannot use the plan upgrade because the customer_id registered in Bubble’s database is different from the customer_id that has the information on the paid plan.

Can you understand? haha ha

Follow images to illustrate.

Thanks in advance.

Hi! Were you able to solve it?