Here is the story I downloaded paypal sample code from github.com/paypal/PayPal-PHP-SDK/ I am using rest api for creating billing aggrement with credit card. In CreateBillingAgreementWithCreditCard file, I have changed parameter in these code $creditCard->setType()->setNumber()->setExpireMonth() ->setExpireYear()->setCvv2(); $shippingAddress->setLine1()->setCity()->setState()->setPostalCode()->setCountryCode(); In bootstrap file, I have changed $clientId, $clientSecret, $apiContext->setConfig(array('mode' => 'live'.... It works fine with sandbox but not with live. I have https, DoDirectPayment enabled. I called paypal to enable DPRP and confirmed that it is enabled. I have searched in google and stackoverflow. Nothing works. Here is error: Created Billing Agreement. (Failed) Response Object Got Http response code 400 when accessing https://api.paypal.com/v1/payments/billing-agreements/. { "name": "DPRP_DISABLED", "message": "DPRP is disabled for this merchant.", "information_link": "https://developer.paypal.com/webapps/developer/docs/api/#DPRP_DISABLED", "debug_id": "8a495ffd92721" }
... View more