Reputation: 101
I want to transfer money between two PayPal accounts without forcing user to enter information as in Express checkout.
Is there any way to do it via OmniPay?
I am using this code for express checkout.
$gateway = Omnipay::create('PayPal_Express');
$gateway->setUsername('ABCD');
$gateway->setPassword('ABCD');
$gateway->setSignature('ABCD');
$gateway->setTestMode(true);
$params = array(
'amount' => '400.00',
'currency' => 'USD',
'description' => 'ABCD funds transfer',
'returnUrl' => 'http://abcd.com/jj/payment/paypal_success/'.$session['id'],
'cancelUrl' => 'http://abcd.com/jj/payment/index'
);
$response = $gateway->purchase($params);
$response = $response->send();
$response->redirect();
Upvotes: 2
Views: 331
Reputation: 961
You can accomplish this via Adaptive Payments if:
Otherwise, the sender has to authenticate the transaction.
Upvotes: 1