- This topic has 1 reply, 2 voices, and was last updated 2 days, 1 hour ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Stripe payment plugins for your WordPress site
· ·
Home › Forums › Stripe Payments Plugin › Prefill email on payment OR send custom email to Stripe
Hello,
I am having an issue and I was wondering if there is a way to send/prefill the email to payment form or to Stripe when creating a subscription.
My flow:
1. User goes to https://mywebsite.com/asp-payment-box/?product_id=1350
2. Fills in the details and presses Pay, or pays with Apple/Google Pay. Then the data is sent to Stripe for purchasing the subscription.
3. I catch the payment in my API with an action (asp_stripe_payment_completed)
4. In my API, I update my DB based on Stripe payment email (because I am able to see the Stripe object in the asp_stripe_payment_completed callback)
My problem:
In my DB, the user is “[email protected]”
In Stripe, especially if user pays by Apple/Google Pay, the email can be different (for example “[email protected]”)
This causes an issue in my DB updating, my code will look for “[email protected]” and it will not update the correct user ([email protected])
Looking forward for any ideas. Much appreciated, thank you!
Best,
Marius
Hi, the use case you described will require custom code development. We’ve sent you an email with more details, please reply to that email.