Closed globatum closed 7 years ago
The amount
for a subscription can be changed, as it is one of the request fields for Update Subscription API. So, in the sample code for update-subscription, you can add following code before sending the request:
$subscription->setAmount($amount);
In the SDK, you can find this info by searching for ARBUpdateSubscriptionRequest, in which subscription is of type ARBSubscriptionType which has the amount field.
What do you mean by modifying the billing cycle? Is the date of payment changing every month (for a monthly subscription?) As stated in the developer reference , the payments for subscriptions are made automatically based on start date and the interval. The interval cannot be modified(and hence the field is not mentioned as part of paymentSchedule). After the first successful payment, start date cannot be modified.
In the absence of any further questions, I'll close this issue for now. Please reopen if there's any more information or help you need.
It's not clear how I can adjust someone's subscription on my site with update-subscription.php.
The price a user pays on my site is dynamic and according to the number of emails they plan to send per month. Sometimes, they need to send more or downgrade their account meaning I need to adjust their monthly subscription accordingly. The update-subscription.php provides no way of modifying the amount or the billing cycle. Any help?