omnipay

omnipay array of products

徘徊边缘 提交于 2019-12-12 20:19:07
问题 Hello guys I'm working with omnipay in laravel and I want to know how can I change the code to show in the paypal receip the total of every item and the description of them $response=$gateway->purchase( array( 'cancelURL' => $keys->getCancelUrl(), 'returnURL' => $keys->getReturnUrl(), 'description' => Cart::content(), 'amount' => '200.00', 'currency' => $keys->getCurrency() ) )->send();</i> 回答1: I never used OmniPay, by the way I've googled around and found what I think you are looking for on

Sagepay Direct 3D Secure Blank Page Issue

做~自己de王妃 提交于 2019-12-11 15:44:06
问题 I'm trying to implement Omnipay with Sagepay Direct but am really struggling with the 3D Secure bit. When I post the MD, PaReq and TermUrl to https://test.sagepay.com/mpitools/accesscontroler?action=pareq I just get a blank screen. These previous SO answers suggest removing spaces from the PaReq field solves the issue, but I don't have any spaces in my data. SagePay Direct 3DSecure checkout part returning blank page when redirecting out to bank Sage Pay test server won't load 3D Secure page

How do I use omnipay to check if it's a pending payment or not

北慕城南 提交于 2019-12-10 19:08:06
问题 I'm using Omnipay 2.1 and CodeIgniter 2.1.4 to receive Paypal payments. I use this line to complete the purchase and check if the payment was sent: $bool = $gateway->completePurchase(array('amount' => $total, 'currency' => 'EUR')) ->send() ->isSuccessful(); But I noticed that the method isSuccessful() will also return true if the payment is on pending. How can I use omnipay to check if it's a pending payment or not? 回答1: Looking at your raw response data, the important lines are: [ACK] =>

Disable sandbox mode for Paypal Express

↘锁芯ラ 提交于 2019-12-10 11:59:05
问题 I'm using Omnipay with CodeIgniter to allow customers to checkout on Paypal. I was using test mode during the development on the website, but now the site is done and ready to be put in production. But I don't know how to setup Omnipay to use live payments and not Sandbox mode. I tried setting the testMode to false. -> Security header invalid. I tried creating REST Api credentials -> You can't make this api call. I know that's probably not the right way to do this, but at least I explored

Does anyone have a working example of Omnipay and Sagepay Server or Sagepay Direct (with 3D Secure)?

会有一股神秘感。 提交于 2019-12-08 08:01:42
问题 I'm struggling to get either to work and Omnipay doesn't come with much documentation. I've successfully used it for other payment gateways but not with Sagepay. I'm trying to integrate it into CodeIgniter but can work from examples in other frameworks - I'm getting desperate! 回答1: Thanks to some great help on github (see comments in my original post for the thread link), I now have some workable code which I will share here in case it helps someone else in the future. <?php use Omnipay

Setting shipping info in OmniPay

橙三吉。 提交于 2019-12-07 15:39:53
问题 I'm trying to set a shipping info (name,address, email, etc) using OmniPay for PayPal Express . I've tried adding shipping info in options array in purchase($options) object: $options = array( // required fields (username, pass, etc) // ..... 'shippingAddress1' => 'Elm Street' 'shippingCity' => 'Elm', 'shippingPostcode' => '1000' // etc. ); I also tried passing this info to CreditCard object: $card = new Omnipay\Common\CreditCard($card_options); without any success. The code: $gateway =

omnipay paypal express not returning address

孤者浪人 提交于 2019-12-06 02:57:37
问题 I am using the omnipay setup here: https://github.com/adrianmacneil/omnipay to process a paypal express checkout. The process works fine in that the user is redirected to paypal -> they login and choose to pay -> they get returned to my site at which point I capture the payment. The problem I've got is that I need to capture the address they have entered into paypal as their billing / shipping address. To send the user across to paypal I have the following: $gateway = GatewayFactory::create(

Setting shipping info in OmniPay

扶醉桌前 提交于 2019-12-06 02:47:06
I'm trying to set a shipping info (name,address, email, etc) using OmniPay for PayPal Express . I've tried adding shipping info in options array in purchase($options) object: $options = array( // required fields (username, pass, etc) // ..... 'shippingAddress1' => 'Elm Street' 'shippingCity' => 'Elm', 'shippingPostcode' => '1000' // etc. ); I also tried passing this info to CreditCard object: $card = new Omnipay\Common\CreditCard($card_options); without any success. The code: $gateway = GatewayFactory::create('PayPal_Express'); $gateway->setUsername(USERNAME); $gateway->setPassword(PASS);

omnipay paypal express not returning address

China☆狼群 提交于 2019-12-04 07:27:30
I am using the omnipay setup here: https://github.com/adrianmacneil/omnipay to process a paypal express checkout. The process works fine in that the user is redirected to paypal -> they login and choose to pay -> they get returned to my site at which point I capture the payment. The problem I've got is that I need to capture the address they have entered into paypal as their billing / shipping address. To send the user across to paypal I have the following: $gateway = GatewayFactory::create('PayPal_Express'); $gateway->setUsername('XX-USERNAME_XX'); $gateway->setPassword('XX_PASSWORDXX');

Omnipay paypal integration with laravel 4

不问归期 提交于 2019-12-02 18:21:16
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