I use the SetExpressCheckout method, I get token successfully, then I pass it by reference so that the user can make a payment:
https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=<? echo $token[1]; ?> Token creation script:
$paypal_create_token = post('https://api-3t.paypal.com/nvp', array( 'params' => array( 'USER' => $paypal_config['user'], 'PWD' => $paypal_config['password'], 'SIGNATURE' => $paypal_config['sign'], 'METHOD' => 'SetExpressCheckout', 'VERSION' => $paypal_config['version'], 'REQCONFIRMSHIPPING' => 0, 'NOSHIPPING' => 1, 'SOLUTIONTYPE' => 'Sole', 'LANDINGPAGE' => 'Billing', 'LOGOIMG' => $protocol.'://'.$host.'/images/logo197x40.png?'.$time, 'HDRIMG' => $protocol.'://'.$host.'/images/logo.png?'.$time, 'BRANDNAME' => mb_strtoupper($host), 'PAYMENTREQUEST_0_AMT' => $amount, 'PAYMENTREQUEST_0_ITEMAMT' => $amount, 'L_PAYMENTREQUEST_0_AMT0' => $amount, 'L_PAYMENTREQUEST_0_NAME0' => $description, 'PAYMENTREQUEST_0_INVNUM' => $order_id, 'L_PAYMENTREQUEST_0_NUMBER0' => $order_id, 'PAYMENTREQUEST_0_PAYMENTACTION' => 'SALE', 'PAYMENTREQUEST_0_CURRENCYCODE' => 'RUB', 'EMAIL' => $orders_info['email'], 'RETURNURL' => $paypal_config['success_url'].'?order_id='.$order_id.'&order_hash='.$order_hash, 'CANCELURL' => $paypal_config['fail_url'].'?order_id='.$order_id.'&order_hash='.$order_hash, ) ) ); $paypal_create_token_content = $paypal_create_token['content']; preg_match('/TOKEN\=(.*?)\&/', $paypal_create_token_content, $token); // получаем token As a result, everything is as it should be, the bill payment page appears:
And when I click on Continue , everything goes well, but the funds from the card are not debited, as if the test mode is set, although the sandbox link is not used. For the sake of interest, I decided to connect my PayPal account to my API data for one payment service, after payment there, the funds were written off from the card.
And yet, sometimes the bank requests an SMS code to confirm the payment, but still nothing is charged. Oddities.
What is the problem? I do not use the sandbox link, but still such a misfortune. I suspect that I passed something wrong into the parameters.

Ради интереса решил подключить свой аккаунт PayPal к одному платежному сервису, там после оплаты, с карты средства списались.- ModaL