Test Stripe reccuring payments – automatic payments/subscriptions
-
Hi,
What is the best way to test/simulate recurring payments with Stripe and PMPro?
I want to trigger the action ‘pmpro_subscription_payment_completed’ to execute my code and test if it works. I have set the sandbox/testing enviroment and I want to simulate that action occurs.
What is the best way to run that action ‘right now’?
I did something like this in pmpro_customization.php:
function pmpro_add_mycred_points($morder ) {
//default values for myCred
$reference = 'pmpro_subscription_payment_completed';
$entry = 'Points for auto renewal';
$point_amount = 15;
//add credits to mycred account.
mycred_add( $reference, $morder->user_id, $point_amount, $entry );
}
add_action( 'pmpro_subscription_payment_completed', 'pmpro_add_mycred_points', 10, 1 );But I don’t know how to test this. I have only one level with recurring subscription.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Test Stripe reccuring payments – automatic payments/subscriptions’ is closed to new replies.