paypal / merchant-sdk-php

PHP SDK for integrating with PayPal's Express Checkout / MassPay / Web Payments Pro APIs
Other
230 stars 201 forks source link

Can't change subscription BillingPeriod #170

Closed vicn1222 closed 2 years ago

vicn1222 commented 3 years ago

I follow example on UpdateRecurringPaymentsProfile.php and found that the BillingFrequency and BillingPeriod won't change.

The original subscription is monthly payment at $10/month.

Now I want to change to each 12 months at $100. The amount is changed, but it still charges on monthly basis, not 12 months.

Bellow is the code

$paymentBillingPeriod =  new BillingPeriodDetailsType;
$paymentBillingPeriod->BillingFrequency = 12;
$paymentBillingPeriod->BillingPeriod = "Month";
$paymentBillingPeriod->Amount = new BasicAmountType( "USD", 100 );

I went ahead and try to manually change the subscription inside my paypal or sandbox accounts. In the "Update Pricing" page, the "Subscription period" is grayed out.

Can someone tell me what do I do wrong?

Thanks.

devchristina commented 2 years ago

Closing due to lack of support.