I have tried enabling receiving billing addresses with PayPal sandbox by adding the following option:
REQBILLINGADDRESS=1 (documented here: https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/pfp_expresscheckout_pp.pdf)
For the call to SetExpressCheckout.
However, I receive the following error:
'ACK': 'Failure',
'BUILD': '6675672',
'CORRELATIONID': '4d9afd327754a',
'L_ERRORCODE0': '11601',
'L_LONGMESSAGE0': 'Billing address request is not enabled for merchant',
'L_SEVERITYCODE0': 'Error',
'L_SHORTMESSAGE0': 'Request for billing address failed',
'TIMESTAMP': '2013-06-28T16:32:22Z',
'VERSION': '72.0'
I know receiving billing addresses is possible as the Humble Bundle do it here:
How do I change my sandbox account to enable billing address requests? and what do I need to do in order to enable this for a live account?
PayPal has deprecated PayPal Express payment. Existing forms with PayPal Express will still work, but we highly recommend switching to/using our newest PayPal integrations, such as the following: Paypal Checkout.
PayPal Checkout, formerly known as PayPal Express Checkout, is a tool made for online sellers. It allows customers to buy goods or services easily, without the need to input their shipping and billing details. This ensures that the customer's personal and payment information is transmitted securely to the merchant.
Setup. Navigate to the Memberships > Payment Settings admin page. Select the “PayPal Express” gateway from the “Payment Gateway” dropdown list. Enter your PayPal Express API key, username, and password set in the appropriate fields [docs].
Along with passing over the variable in your code, you also need to have the feature enabled on your account. For your live account you will need to contact PayPal Bussiness/Customer support and request this to be enabled on your account. I have enabled it on your sandbox account, you should now be able to test with it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With