Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

set renew subscroption stripe update

// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
StripeStripe::setApiKey('sk_test_538FOfaeDI02G1nEIgi9fDP400N2A51ibF');

StripeSubscription::update('sub_49ty4767H20z6a', [
  'billing_cycle_anchor' => 'now',
  'proration_behavior' => 'create_prorations',
]);
Source by stripe.com #
 
PREVIOUS NEXT
Tagged: #set #renew #subscroption #stripe #update
ADD COMMENT
Topic
Name
7+2 =