Skip to content

Instantly share code, notes, and snippets.

@mbeale
Last active December 24, 2015 02:39
Show Gist options
  • Save mbeale/6732391 to your computer and use it in GitHub Desktop.
Save mbeale/6732391 to your computer and use it in GitHub Desktop.
Samples for manipulating renewal dates using Recurly.js
//Samples in PHP
//starts_at
$signature = Recurly_js::sign(array(
'account'=>array('account_code'=>'my_account_code'),
'subscription' => array(
'plan_code' => 'test-plan-340480',
'starts_at'=>'2013-09-30T12:06:36-06:00')
)
);
//trial_ends_at
$signature = Recurly_js::sign(array(
'account'=>array('account_code'=>'my_account_code'),
'subscription' => array(
'plan_code' => 'test-plan-340480',
'trial_ends_at'=>'2013-09-30T12:06:36-06:00')
)
);
//first_renewal_date
$signature = Recurly_js::sign(array(
'account'=>array('account_code'=>'my_account_code'),
'subscription' => array(
'plan_code' => 'test-plan-340480',
'first_renewal_date'=>'2013-09-30T12:06:36-06:00')
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment