|

srfm_payment_completed

Description

Fires when a payment is successfully completed (via Stripe in Free, via PayPal in Pro). Use it to trigger fulfillment, send receipts, or sync to external systems.

Parameters

  • $payment (object) – The payment record.
  • $payment_context (array) – Normalized payment context from Payment_Helper::build_payment_context().

Hook Usage

PHP
add_action( 'srfm_payment_completed', 'my_callback', 10, 2 ); 
function my_callback( $payment, $payment_context ) { 
// Fulfill the order / send a receipt. 
}

Hook Example

PHP
add_action( 'srfm_payment_completed', 'my_callback', 10, 2 ); 
function my_callback( $payment, $payment_context ) { 
// Fulfill the order / send a receipt. 
}
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top