Forum Replies Created
-
AuthorPosts
-
September 30, 2025 at 10:53 pm in reply to: Prefill email on payment OR send custom email to Stripe #5638
mariuselz
ParticipantSo after 4-5h of trying a lot of things, I solved this by sending the App email as metadata on subscription purchase. Then in my API (on payment complete event), I am waiting for Customer to be updated with the metadata, then update the Customer email (payment one, original) with App email from metadata. Then I proceed to update my DB. Not ideal, but works. Maybe it helps someone
September 30, 2025 at 6:33 pm in reply to: Prefill email on payment OR send custom email to Stripe #5636mariuselz
ParticipantUpdate: it was working on Apple Pay if I open a Stripe window from my API.
But it is not working if I prefill S-Plugins form and then pay with Apple Pay.-
This reply was modified 3 days, 2 hours ago by
mariuselz.
September 30, 2025 at 6:26 pm in reply to: Prefill email on payment OR send custom email to Stripe #5634mariuselz
ParticipantThank you, this is working. Use $_GET[’email’] to get the email dynamically from the url.
I have tested and it seems the subscription is created on this particular email, in Stripe. Even if the transaction is done via Apple Pay (no email to fill in). Which is perfect!
-
This reply was modified 3 days, 2 hours ago by
mariuselz.
mariuselz
ParticipantHi, thank you for this information.
Does it work with the “email” as well? I am asking because I’m aware this field might be sensitive, maybe it cannot be overwritten?
Looking forward to your reply, thank you!
Best,
Mariusmariuselz
ParticipantI’ve managed to do this using Stripe Webhooks and written my own webhook handler in my API. I’d say this is the best/cleanest method. I’m thinking of also moving the “asp_stripe_payment_completed” action I have in WP to Stripe Webhooks.
mariuselz
ParticipantHello,
Thank you for your reply!
I am using the “asp_stripe_payment_completed” action/hook and it’s working for the first time an user purchases a subscription. But it seems when the subscription is renewed, the hook is not triggered as my DB is not updating. Is this action supposed to be triggered on renewal as well?I will try to simulate a subscription renewal and retest my code meanwhile.
Best,
Mariusmariuselz
ParticipantHello Alexander,
How can this asp-prefill-customer-name-and-email be used exactly? I’m not sure I understand sorry.
Best,
MariusNovember 6, 2024 at 10:44 pm in reply to: Subscription – Action hook for cancelling a subscription #5295mariuselz
ParticipantOk, it works. I created a plugin specifically for the hooks and it’s all good.
Thank you, the plugin is really nice so far.
November 6, 2024 at 10:20 pm in reply to: Subscription – Action hook for cancelling a subscription #5294mariuselz
ParticipantUpdate: Found this discussion: https://s-plugins.com/forums/topic/i-need-to-hook-into-the-chancel-subscription-function/
I’m in the process of making a custom plugin right now and check. Will update.
-
This reply was modified 3 days, 2 hours ago by
-
AuthorPosts