Billing agreement fails to attach plan.
ardev
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-08-2018
03:52 PM
Hi I am using paypal sdk. I got stuck and I think there is a problem with paypal.
I am trying set a plan in an agreement and I can't move on. Please help.
$plan = Plan::get('P-8S006071UD1304535TRTZZNI', $apiContext);
$agreement->setPlan($plan);
I get this error: Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/billing-agreements/.
And when I try with anything like this:
$plan = Plan::get('Illputwhatever', $apiContext);
$agreement->setPlan($plan);
I get this error: Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/billing-plans/Illputwhatever.
2 REPLIES 2
MTS_Justin
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr-09-2018
01:13 AM
MTS_Andre
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr-10-2018
05:37 AM
Hi, can you share the full response? There should also be a debug-id. This is the Billing Agreement documentation for reference.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- can we assign a unique detail to every subscription creation? in NVP/SOAP APIs
- Load paypal approval_url in popup window using sdk in SDKs
- NOT_AUTHORIZED returned when using /billing-agreements/agreements in Sandbox Environment
- Is it possible to set multiple billing agreements in SetExpressCheckout? in NVP/SOAP APIs
- incorrect plan id in REST APIs