Last active
December 9, 2015 01:10
-
-
Save DevinWalker/f36d56fd25496043dc62 to your computer and use it in GitHub Desktop.
This will add child subscription payments to a given subscription
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create Recurring Dummy Subscriptions | |
*/ | |
$subscription = new Give_Subscription( 68 ); | |
$args = array( | |
'subscription_id' => 68, | |
'amount' => 20, | |
'transaction_id' => md5(uniqid(rand(), true)), | |
); | |
$subscription->add_payment($args); | |
$subscription->renew(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment