|

srfm_subscription_renewed

Description

Fires when a subscription renews. The middle argument differs slightly between gateways: Stripe passes $subscription_record, PayPal passes $parent_subscription – both are the parent subscription record.

Parameters

  • $renewal_payment (object) – The payment record for this renewal cycle.
  • $subscription_record (object) – The parent subscription record.
  • $payment_context (array) – Normalized payment context.

Hook Usage

PHP
add_action( 'srfm_subscription_renewed', 'my_callback', 10, 3 ); 
function my_callback( $renewal_payment, $subscription_record, $payment_context ) { 
// Extend access for the renewal period. 
}

Hook Example

PHP
add_action( 'srfm_subscription_renewed', 'my_callback', 10, 3 ); 
function my_callback( $renewal_payment, $subscription_record, $payment_context ) { 
// Extend access for the renewal period. 
}
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