I want to integrate Omnipay paypal in laravel 4
. I have gone through but I was unable to understand how to do it. I didn't find any documentation. I have gone through this, this and this.
I have installed it using Composer. Now I am confused in following questions.
$gateway = Omnipay::create('PayPal_Express');
$gateway->setUsername('XXXXX');
$gateway->setPassword('XXXX');
$gateway->setSignature('XXXXX');
Whose credentials will be given here? The one who is buying or the one to whom money will be transferred. I either case where other's credentials will be given?
How user will do transactions? I have seen its purchase and purchasecomplete functions but couldn't be able to understand it. In normal Paypal integration, we usually redirect users to Paypal where he or she completes the transaction and then comes back. How can I do this here?
Can someone direct me the complete documentation where I can read its whole flow?