- This topic has 4 replies, 3 voices, and was last updated 9 years, 9 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 › Get Payment details on successful stripe paymeny
Tagged: Stripe Payment Status
Hello Support,
I need to do some SQL operation once the user successfully makes the payment. May be on the Return URL
Is there a way I can figure out that payment is successful and gather the payment details like token id, member id, membership plan paid for etc and I can do some DB operation on the same.
Also I need to send them a welcome email once they have successfully made payment, with some basic instruction for my Web App.
Can anyone please suggest how to fulfill this.
Thanks.
Thank you for your questions. The plugin developers will investigate further your request.
Regards
Kindly update me asap, as I need to understand and implement this on my website which is soon to be made Live.
Thank you for all your support.
You can use the “swpm_stripe_ipn_processed” action hook to get notified after a successful stripe payment.
Example usage below:
add_action('swpm_stripe_ipn_processed', 'my_custom_tweak_after_stripe_payment');
function my_custom_tweak_after_stripe_payment($ipn_data){
//DO something with the payment data passed in the $ipn_data array.
}
Thank you so much. I’ll try this and update you.