strangerstudios / pmpro-add-name-to-checkout

Adds “First Name” and “Last Name” fields to the “Account Information” section of the Membership Checkout page when using Paid Memberships Pro.
https://www.paidmembershipspro.com/add-ons/add-first-last-name-to-checkout/
17 stars 23 forks source link

Reported that Stripe uses the old name instead of the new name when checking out. #12

Closed ideadude closed 3 years ago

ideadude commented 5 years ago

Let's try to recreate this and see if we can come up with a fix.

JarrydLong commented 4 years ago

Figured out how to replicate this.

Once you go through the checkout process, Stripe creates a 'customer' for you. On the initial purchase, we use the first_name and last_name details, but if you're purchasing again and we've got your details, we'll use either what's stored or the billing_name if available.

image

Working from the bottom up, 'admin' is what was stored already before using the plugin. 'Jarryd Pro was then used during checkout, saved to the profile but didn't go through to Stripe. Adjusted the code, checkout out again and it worked. Same applies for 'Jarryd Updated Acc'