Hello, I have an existing solution that uses the button manager to create dynamic encrypted buttons and I am about to develop a similar solution on another site, but reading the docs it seems it may be deprecated: https://developer.paypal.com/docs/archive/button-manager/integration-guide/ I then goes on to suggesting using "PayPal Checkout Overview" for "Buy Now" buttons. However it being deprecated doesn't seem to be mentioned anywhere else, such as: https://developer.paypal.com/docs/paypal-payments-standard/gs-PayPalPaymentsStandard/ https://developer.paypal.com/docs/archive/button-manager/integration-guide/#button-manager-api-summary https://developer.paypal.com/docs/archive/button-manager/ The endpoint I am using is: https://api-3t.sandbox.paypal.com/nvp and my code looks something like this: $paypal = new Paypal();
// Set our method
$method = 'BMCreateButton';
// Set our params
$params = array(
'BUTTONCODE' => 'ENCRYPTED',
'BUTTONTYPE' => 'BUYNOW',
'BUTTONSUBTYPE' => 'PRODUCTS',
'L_BUTTONVAR0' => 'item_name=xxxxxxxxxxxxxx',
'L_BUTTONVAR1' => 'amount=' . $amount,
'L_BUTTONVAR2' => 'currency_code=AUD',
'L_BUTTONVAR3' => 'cancel_return=' . CANCEL_URL,
'L_BUTTONVAR4' => 'return=' . SUCCESS_URL,
'L_BUTTONVAR5' => 'rm=2',
'L_BUTTONVAR6' => 'custom=' . $order_hash,
'L_BUTTONVAR7' => 'notify_url=' . get_template_directory_uri() . '/paypal.php'
);
try {
// Send request for button
$result['data'] = $paypal->request($method, $params);
} catch (Exception $e) {
$result['error'] = $e->getMessage();
$error = 1;
} So my question is, is the button manager being deprecated? Do I have to use "PayPal Checkout" now with the smart buttons? From what I can tell the "amount" isn't encrypted and is stored in JS according to this page: https://developer.paypal.com/docs/checkout/integrate/#6-test-the-integration The other issue with that is that it appears you can't customise the buttons. Cheers!
... View more