- This topic has 5 replies, 3 voices, and was last updated 6 years, 5 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Stripe payment plugins for your WordPress site
· ·
Home › Forums › Stripe Payments Plugin › Include name in email to buyer
Perhaps I’ve just missed something basic: is there really no tag to put into the custom email for the buyer to include in the salutation; something like:
Dear {payer_first_name} {payer_last_name}
I realize I can use their email address, but that isn’t the best customer experience.
Stripe doesn’t collect the customer name for normal checkout. It is only collected with the address field (if you enable address collection). This name value is not present at all on transactions without address field collection. So we didn’t create a tag for it.
You can get the name with the address field if you use the address merge tag. For example: {billing_address}
Maybe we can add a merge tag for “customer name” which will only work when the address field collection is enabled. Will that work for you?
Well, the billing_address tag has more than just the name, and it isn’t really parseable.
It’s easy enough to create a payer_name attribute that is set from stripeBillingName or if that isn’t present, stripeEmailAddress. I did that in my site. Is there a github or something else for this? I’d be happy to submit a formal patch.
Yes, we have a github repository for the plugin. You can create a pull request here:
hi
i really want this feature so I can use the donor’s name in the thank you page and the email.
can you please create that “customer name” merge tag as you mentioned above? ideally first and last name separate!
thank you so much in advance!!
The {customer_name} email merge tag has been added in the latest release of the plugin. We have updated the documentation for it: