- This topic has 4 replies, 2 voices, and was last updated 3 years, 3 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Stripe SCA Buy Now Button action hook not working
Hi, I want to know when the payment finished to save the data, but the action hook is not working or I put the code in the wrong file. I tried:
add_action(‘swpm_stripe_ipn_processed’, ‘after_stripe_payment’);
function after_stripe_payment($info){
…
}
like here https://simple-membership-plugin.com/forums/topic/get-payment-details-on-successful-stripe-paymeny/
Should I put this code in functions.php or other file ?
Thankyou!
Should I put this code in functions.php or other file ?
Yes, at the end of the file is the “usual place.” Also remember to enable the debug logs.
It’s not working, I am using Stripe SCA Buy Now button from the plugin and sandbox payment mode enabled. The logs look fine.
Maybe this would work only for Stripe Subscription Button or with a product made on stripe website ?
So I found out that only swpm_payment_ipn_processed works, idk why stripe doesn’t.
Are you meeting the SCA requirements? Specifically, your site has an SSL certificate?
https://simple-membership-plugin.com/sca-compliant-stripe-buy-now-button/