Im integrating sandbox Paypal in cake php code facing issue for redirection to payment page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm integrating paypal payment gateway in cake php code for sandbox environment.
Below is my request data:
$response = $pp->requestTransaction([
'cmd' => '_xclick',
'business' => 'account email id ', //paypal email address
'item_name' => 'neeta',
'amount' => '200',
'currency_code' => 'USD', //paypal currency,
'no_shipping' =>'1',
'return' => Router::url(['controller' => 'invoices', 'action' => 'success', $invoice['Invoice']['id']], true), //where to go back when the transaction is done.
'cancel_return' => Router::url(['controller' => 'dashboard', 'action' => 'renew', 'supplier' => true], true), //Where to go if the user cancels.
],$invoice['Invoice']['invoice_number']);
I'm trying to send this data with http socket connection .Im trying to send this request using http socket post ()
Its redirecting to login page of paypal payment page.
Question :
Do I need to pass the password ?
Should the password encrypted?
what encryption type I need to use?
Do I need to pass signature?
I need to pass the account holder email in "business" parameter or sample business email id ?
- Labels:
-
REST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for posting to the PayPal Merchant Technical Support Community.
We recommend upgrading to PayPal Checkout: https://developer.paypal.com/docs/checkout/
The PayPal Checkout option has more payment options, no button code encryption needed, uses Rest API credentials.
The method posted here is the PayPal Standard HTML form post method, which does not use API credentials, so you would not pass any API Credentials. You will not pass a password or api signature into this request. This is the information you need to encrypt your button code.
For the PayPal Standard form post method you need to pass either the Merchant ID or the Business Email address. If you pass a sample business id then the payment will be unconfirmed and the funds will not go to the business account.
Thank you,
Jennifer
PayPal
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Need help to integrate Advanced Checkout (PPCP) With WHMCS in PayPal Upgrade Community
- I need to integrate a recurring payment with a variable for a pay-as-you-go product in REST APIs
- I'm getting error once user try to pay via PayPal - NVP/SOAP Api Integration in NVP/SOAP APIs
- Hide shipping address in Debit/Credit card form in PayPal Payments Standard
- How to redirect user to paypal checkout form for card payment? in PayPal Payments Standard