Skip to content

Instantly share code, notes, and snippets.

@DevinWalker
Last active December 9, 2015 01:10
Show Gist options
  • Save DevinWalker/f36d56fd25496043dc62 to your computer and use it in GitHub Desktop.
Save DevinWalker/f36d56fd25496043dc62 to your computer and use it in GitHub Desktop.
This will add child subscription payments to a given subscription
<?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