Im integrating sandbox Paypal in cake php code facing issue for redirection to payment page

NeetaA
Contributor
Contributor

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 ?

 

 

 

Login to Me Too
1 REPLY 1

MTS_Jennifer
Moderator
Moderator

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

 

 

 

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.