• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Topics / Prefill email on payment OR send custom email to Stripe

[Resolved] Prefill email on payment OR send custom email to Stripe

· ·

Home › Forums › Stripe Payments Plugin › Prefill email on payment OR send custom email to Stripe

  • This topic has 2 replies, 2 voices, and was last updated 2 weeks ago by Admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 3, 2025 at 7:04 pm #5483
    mariuselz
    Participant

    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

    • This topic was modified 3 weeks, 4 days ago by mariuselz.
    • This topic was modified 3 weeks, 4 days ago by mariuselz.
    • This topic was modified 3 weeks, 4 days ago by mariuselz.
    May 4, 2025 at 5:00 am #5493
    Admin
    Keymaster

    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.

    May 14, 2025 at 1:06 pm #5539
    Admin
    Keymaster

    We’ve created an example addon that demonstrates how to capture a custom piece of information via a query parameter on the payment page and pass it to the Stripe API as metadata. Sharing it here in case it’s helpful:

    https://github.com/Arsenal21/stripe-payments-enhancements/tree/master/asp-custom-reference-data-collector

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay, Google Pay, Afterpay

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

Copyright © 2025 | Stripe Plugins | A member of the Tips and Tricks HQ family.