Update subscription price Failure 10004 invalid argument
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear all,
We have a service where the customers can subscribe for it.
It was working fine, but once (about 2 months ago) stopped working. Since we see some changes on the PP web interface.
We didn't change anything in our code and it is not working now. So I guess PP changed something.
I cannot find any good guide to fix this issue.
What I have to change to follow the PP changes?
This is my code:
if (rppdr.Ack == AckCodeType.SUCCESS)
{
// SET UP THE REQUEST
UpdateRecurringPaymentsProfileRequestDetailsType req = new UpdateRecurringPaymentsProfileRequestDetailsType(formulate.SubscriptionId);
UpdateRecurringPaymentsProfileReq urpp = new UpdateRecurringPaymentsProfileReq();
urpp.UpdateRecurringPaymentsProfileRequest = new UpdateRecurringPaymentsProfileRequestType();
// SET THE NEW AMOUNT
req.Amount = new BasicAmountType();
req.Amount.value = Math.Round(formulate.TotalPrice, 2).ToString();
req.Amount.currencyID = CurrencyCodeType.GBP;
urpp.UpdateRecurringPaymentsProfileRequest.UpdateRecurringPaymentsProfileRequestDetails = req;
// DO THE UPDATE!
UpdateRecurringPaymentsProfileResponseType upprt = service.UpdateRecurringPaymentsProfile(urpp);
and after it I get the failure message.
Any advice will be appreciated.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- I Have PayPal API Billing Authentication Failure Python-Flask in REST APIs
- Can I create a Subscription using Vault Payment Method Token in Javascript in REST APIs
- Create subscription creates invalid orders, why? in SDKs
- Payment REST API issue in REST APIs
- XPF Currency - French Pacific Franc in Braintree Client-side Integration (JS, iOS, Android SDKs)