omnipay

Omnipay Stripe Extra Parameters

寵の児 提交于 2021-01-27 13:20:39
问题 Im trying to use the Omnipay API with Stripe, but I can't pass in extra parameters such as "Name", "Metadata", or "Zip". // The token is grabbed from stripe JS $this->stripe_gateway = Omnipay::create('Stripe'); $response = $this->stripe_gateway->purchase([ 'amount' => $amount, 'currency' => 'usd', 'name' => $name, 'description' => $product->title, 'zip_address' => $zip, 'metadata' => [ 'name' => $name, 'user_id' => $this->session->get('id') ], 'token' => $stripeToken, ])->send(); I cant get

Getting, storing, and refreshing PayPal access token in Laravel

江枫思渺然 提交于 2021-01-05 07:16:17
问题 I am currently using Omnipay's PayPal library in Laravel to interact with the PayPal API. Paypal requires an application to use its client id and secret to retrieve an access token. I've stored the client id and secret in ENV variables. I'm trying to figure out 2 things: Does Omnipay manage access tokens? If so, is there documentation on how that works? If not, I would like to form the below curl example in PHP so I can function to run either on a cron or on a trigger Documentation on PayPal

Response object - Payment with Mollie and Omnipay

流过昼夜 提交于 2020-02-24 04:20:13
问题 I'm trying to create a payment with Omnipay and Mollie in my Laravel project. I'm using the following 2 libraries: https://github.com/barryvdh/laravel-omnipay https://github.com/thephpleague/omnipay-mollie I'm doing the following in my code: $gateway = Omnipay\Omnipay::create('Mollie'); $gateway->setApiKey('test_gSDS4xNA96AfNmmdwB3fAA47zS84KN'); $params = [ 'amount' => $ticket_order['order_total'] + $ticket_order['organiser_booking_fee'], 'description' => 'Bestelling voor klant: ' . $request-

Response object - Payment with Mollie and Omnipay

末鹿安然 提交于 2020-02-24 04:20:11
问题 I'm trying to create a payment with Omnipay and Mollie in my Laravel project. I'm using the following 2 libraries: https://github.com/barryvdh/laravel-omnipay https://github.com/thephpleague/omnipay-mollie I'm doing the following in my code: $gateway = Omnipay\Omnipay::create('Mollie'); $gateway->setApiKey('test_gSDS4xNA96AfNmmdwB3fAA47zS84KN'); $params = [ 'amount' => $ticket_order['order_total'] + $ticket_order['organiser_booking_fee'], 'description' => 'Bestelling voor klant: ' . $request-

Error in installing omnipay in CodeIgniter

跟風遠走 提交于 2020-01-11 07:32:06
问题 I'm trying to add omnipay in CodeIgniter (version 2.2.4) I followed the instructions in installing composer using this link:https://philsturgeon.uk/blog/2012/05/composer-with-codeigniter/ but I'm having this error: Fatal error: Uncaught exception 'Omnipay\Common\Exception\RuntimeException' with message 'Class '\Omnipay\PayPal Express\Gateway' not found' in C:\xampp\htdocs\testserver\vendor\omnipay\common\src\Omnipay\Common\GatewayFactory.php:105 Stack trace: #0 [internal function]: Omnipay

Use Paypal Pro instead of Paypal Express - Omnipay for Laravel

眉间皱痕 提交于 2020-01-06 13:56:52
问题 I have a shopping cart that currently is redirecting users to paypal directly to make their payment. I am wanting to allow customers to input their credit card on the site and paypal to process it. I have Paypal Pro account but I am having trouble using it. I am not sure how I can use the Paypal Pro package via Omnipay. In my vendors folder I have a ExpressGateway.php and a Progateway.php but not sure how to call the Progateway.php page. The only way I can see to set it is by using Omnipay:

CodeIgniter custom value with omnipay

限于喜欢 提交于 2020-01-05 04:11:08
问题 I'm trying to pass a custom value to a payment with PayPal - OmniPay Here is the code I use : $response = $gateway->purchase( array( 'cancelUrl'=>base_url().'checkout/cancel', 'returnUrl'=>base_url().'checkout/confirm', 'amount' => number_format($retn['invoiceDatas']['price'], 2, '.', ''), 'description' => 'Facture #'.$id, 'currency' => 'EUR', 'transactionid'=> $id, 'custom' => $id, 'description' => 'Facture' ) )->send(); $response->redirect(); And here is the code from checkout page :

Omnipay how to add new gateway

余生长醉 提交于 2020-01-03 13:35:49
问题 Does anyone know how I could add a new payment gateway to Omnipay? I read the blog https://groups.google.com/forum/#!topic/omnipay/j7OeQQSB95A I followed the following steps: Cloned the Omnipay repository using composer Inside the vendor/Omnipay/ directory, added the new directory layout as per the stripe example Now when am now trying to include my gateway, I see the following error: SCREAM: Error suppression ignored for ( ! ) Fatal error: Class '\Omnipay\Mygateway\Gateway' not found in C:

Omnipay paypal integration with laravel 4

落花浮王杯 提交于 2019-12-20 09:19:11
问题 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

Does the creditCard function exist in Omnipay PayPal Express? Or only in PayPal Pro?

非 Y 不嫁゛ 提交于 2019-12-14 01:57:24
问题 This question is maybe similar to THIS and THIS but I'm not entirely sure. I've made a shopping cart that sends the product details and quantity/total amount to Paypal on checking out. I'm using Laravel 4 and the Omnipay Paypal plugin (Paypal_Express). I can send product details fine using the 'setItems' function and am now looking to pre-populate the credit card field on the Paypal summary page with my User's details. I have seen in other SO threads such as THIS that other people use the