Hello, Until now, we have always used our PayPal sandbox for a web application and everything ran smoothly. Now we want to use PayPal in an app as well and have created a sandbox account for ExpressCheckout via Braintree SDK and designed the integration accordingly https://developer.paypal.com/braintree/docs/guides/ec-braintree-sdk/server-side/node. When we try to make a payment with PayPal, we get the following error message: Error Domain=com.braintreepayments.BTHTTPErrorDomain Code=2 "client error" UserInfo={com.braintreepayments.BTHTTPURLResponseKey=<NSHTTPURLResponse: 0x2807f15a0> { URL: https://api.sandbox.braintreegateway.com:443/merchants/z46jv69c89z4dv34/client_api/v1/paypal_hermes/setup_billing_agreement } { Status Code: 422, Headers { "Cache-Control" = ( "no-cache" ); "Content-Encoding" = ( gzip ); "Content-Security-Policy" = ( "frame-ancestors 'self'" ); "Content-Type" = ( "application/json; charset=utf-8" ); Date = ( "Thu, 12 Aug 2021 10:10:18 GMT" ); "Strict-Transport-Security" = ( "max-age=31536000; includeSubDomains" ); "Transfer-Encoding" = ( Identity ); Vary = ( "Accept-Encoding, Origin" ); "X-BroxyId" = ( "e9088ef7-d985-4423-9765-f977f7b30c4b" ); "X-Content-Type-Options" = ( nosniff ); "X-Frame-Options" = ( SAMEORIGIN ); "X-XSS-Protection" = ( "1; mode=block" ); "paypal-debug-id" = ( 94af36e31cca4 ); "referrer-policy" = ( "strict-origin-when-cross-origin" ); "x-download-options" = ( noopen ); "x-permitted-cross-domain-policies" = ( none ); "x-request-id" = ( "e9088ef7-d985-4423-9765-f977f7b30c4b" ); "x-runtime" = ( "0.620855" ); } }, NSLocalizedFailureReason=client error, com.braintreepayments.BTHTTPJSONResponseBodyKey=<BTJSON:0x280aeec80 value:{ error = { debugId = 94af36e31cca4; errorDetails = ( { message = "This merchant account is not permitted to create Merchant Initiated Billing Agreement"; name = "REFUSED_MARK_REF_TXN_NOT_ENABLED"; } ); errorMessage = "Authorization error --- REFUSED_MARK_REF_TXN_NOT_ENABLED:This merchant account is not permitted to create Merchant Initiated Billing Agreement"; errorName = "AUTHORIZATION_ERROR"; paypalHttpStatus = 403; }; }>} The PayPal Merchant ID is: YRPE7TAWKPA34
... View more