Posted: April 8, 2024 at 11:29 am
Hello, We would like to be able to have EE send the purchaser’s email to Stripe when they complete a transaction. Here is a screenshot for your reference: https://snipboard.io/YpLEdI.jpg. We tried a few different things at our end, but the only way we were able to achieve this outcome is by modifying the stripe-elements.js file in the plugin and correctly targeting the email input in the stipe form just before the credit card info is entered. We have made this change on a development site for testing. We were not able to find this email anywhere in the WordPress database or find a solution that does not involve modifying the plugin directly. Please find below what we have done. /wp-content/plugins/eea-stripe-gateway/assets/scripts/stripe-elements.js Line 109 // Comment out this line //Replace with this As modifying the plugin directly is not something we should be doing, I am wondering if this could be incorporated by your developer. That would be a huge help! |
|
Hi there, The change you are making is almost exactly the same as what the original code is using. So this code:
Sets Lets confirm how https://monosnap.com/file/Ty0M6Xct9eWyWeO74pKntBeMeOsmmu Ok, so EE sets it using the form itself, then passes the value to wp_localize_script() to add within https://monosnap.com/file/NE4Jx5JkUHpTv2xNe6erRR8G2f7ovf First line shows me checking Second line shows part of Now lets use both those selectors: https://monosnap.com/file/7Z7hygMuHzT241je96sITR8WXsNKSu Both match the value exactly. So I’m guessing there is something else going on here as my Stripe payments set that value on the charge: https://monosnap.com/file/xGgaeThQb4JuMCVaiOFfikyQpO9uXv Any other custom code hooking in here? |
|
Hi Tony, It looks like the issue I mentioned before has been resolved in the most recent release which is Version 1.1.13.p. So, I’m going to mark the topic as resolved. Thanks for your help! |
|
The support post ‘Sending Purchaser's Email from EE to Stripe’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.