PayPal Pay() method in codeigniter - codeigniter

I am using PayPal Pay() method but it is returning error response -
[ErrorID] => 550001
[Message] => You do not have permission to execute this payment implicitly
Can anyone help me? I am using angelleye paypal library for codeigniter.
Thank You

is CI_Merchant library has an option to payment without redirecting paypal site ?
i found this only,
$this->merchant->load('paypal_express');
but it redirects to paypal site.

Related

Laravel: if I neet to get data from other site should i make a route wirh get or post?

I am trying to implement payment by card in a laravel project. After i enter the card details the payment site must to redirect to my site with infos about payment.
For this i made a route like this
Route::post('/mobilpay/mobilpay/back', 'HomepageController#back');
I put also in VerifyCfsrTocken.php the code
protected $except = [
'ipn/*',
'mobilpay/*',
//
];
After i enter the card details i get the error:
The GET method is not supported for this route. Supported methods: POST.
Is a problem with my route? Should I make a route with get and not with post?
Thanks alot
The issue is how you made the request at the frontend. You should either make a form post request or make an ajax post request.
Please do check your frontend

redirect()->intended('/login') not working laravel

I'm using a custom SocialLoginController to log my users with facebook or google in al Laravel 5.3 project
In some cases I send to users an email with info about one change and the URL to the resource, for example https://myweb.com/settings/profile/[the-uuid]
when the user tries to access but is not logged in, he's redirected to the Handler#render() where I send it to login with return redirect()->guest('/login'); and after login with social account I redirect them using return redirect()->intended('/home') but since I don't use the LoginController, the redirection to the requested URL is not working.
Any idea? Thanks
The problem is the request object is lost after redirect the user to login with facebook or google, so I fixed by saving the requested URI in a session variable and then checking if exists after redirect
return Session::get('intended') ? redirect()->to(\Session::get('intended')) : redirect()->to('/expenses');
Maybe this could help someone

PayZone payment gateway magento Error

Integrated PayZone Payment gateway with magento using their magento module on a hosted payment platform. (redirect to payment provider then back to website)
Getting the below error after card details entered
Fatal error: Call to undefined method Mage_Checkout_Model_Type_Onepage::saveOrderAfterRedirectedPaymentAction() in /home/magentowebsite/public_html/app/code/local/Payzone/Tpg/controllers/PaymentController.php on line 499
Any ideas on how what may be causing this issue?

PayPal integration - issue in redirecting

I am trying to integrate PayPal in my application (MVC4 C#)
Any link/ guidance in integrating it (step by step explanation) will be really helpful.
Issue is
Even though my action link is "https://www.sandbox.paypal.com/cgi-bin/webscr"
it redirects to
"www.sandbox.paypal/home"
If you don't append this ?cmd=_express-checkout&token= with the token then you will be redirected to the home page and not the PayPal Checkout page. The token is gotten from a successful setExpressCheckout request.
The payflow for ExpressCheckout is:
SetExpressCheckout request
Redirect to PayPal for user authorisation
Return to your site
GetExpressCheckoutDetails request
doExpressCheckoutPayment request
Here's a little diagram of the payflow for it:

Paypal with Codeigniter

I am using paypal with codeigniter.
I have paypal credentials, find below -
$this->API_USERNAME = '************';
$this->API_PASSWORD = '************';
$this->API_SIGNATURE = '************';
My requirement is: Direct send payment to user's paypal email address. I have only user's paypal email address.
I used Paypal_pro codeigniter library but no luck, any suggestion. FInd my code below -
$nvpStr = "&EMAILSUBJECT=$emailSubject&RECEIVERTYPE=$receiverType&CURRENCYCODE=$currency";
$nvpStr.="&L_EMAIL0=$receiverEmail&L_Amt0=$amount&L_ITEMAMT=$amount&L_UNIQUEID0=$uniqueID&L_NOTE0=$note";
$httpParsedResponseAr = $this->paypal_pro->hash_call('MassPay', $nvpStr);
Response is-
Array ( [TIMESTAMP] => 2013-09-05T17:45:07Z [CORRELATIONID] => 3dfc532f74f43 [ACK] => Failure [VERSION] => 57.0 [BUILD] => 7560199 [L_ERRORCODE0] => 10329 [L_SHORTMESSAGE0] => User is blocked [L_LONGMESSAGE0] => We're sorry, but your PayPal account isn't currently eligible to send mass payments. Please contact either PayPal Customer Service or your account manager. [L_SEVERITYCODE0] => Error )
but above code works fine with test credentials, find below-
$this->API_USERNAME = 'seller_1297608781_biz_api1.lionite.com';
$this->API_PASSWORD = '1297608792';
$this->API_SIGNATURE = 'A3g66.FS3NAf4mkHn3BDQdpo6JD.ACcPc4wMrInvUEqO3Uapovity47p';
Then i changed this line-
$httpParsedResponseAr = $this->paypal_pro->hash_call('SetExpressCheckout', $nvpStr);
But it return below error -
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_LONGMESSAGE0] => Order total is missing.
Can anyone help me whats wrong i did?
MassPay has to be specifically approved and enabled on a live account in order to use it. The sandbox has access to it without approval so that's why it works fine with your test account.
SetExpressCheckout is the first step in integrating the Express Checkout payment flow into your website or application and its NVP string will be entirely different from what you're trying with MassPay. The error you got is because there was no AMT parameter included in the string you sent.
If you're simply trying to send money from your own account to another account you can use the Pay API for that.
I would recommend taking a look at my CodeIgniter library for PayPal which will make this very simple for you to setup your Pay request.

Resources