Skip to content

Commit 045203b

Browse files
isneezyalexw23
authored andcommitted
Added paypal example (#33)
* Update composer.json * Update README.md * Update README.md
1 parent d4e29ff commit 045203b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,30 @@ $app->configure('laravel-omnipay');
7979

8080
Once you have published the configuration files, you can add your gateway options to the config file in `config/laravel-omnipay.php`.
8181

82+
#### PayPal Express Example
83+
Here is an example of how to configure password, username and, signature with paypal express checkout driver
84+
85+
```php
86+
...
87+
'gateways' => [
88+
'paypal' => [
89+
'driver' => 'PayPal_Express',
90+
'options' => [
91+
'username' => env( 'OMNIPAY_PAYPAL_EXPRESS_USERNAME', '' ),
92+
'password' => env( 'OMNIPAY_PAYPAL_EXPRESS_PASSWORD', '' ),
93+
'signature' => env( 'OMNIPAY_PAYPAL_EXPRESS_SIGNATURE', '' ),
94+
'solutionType' => env( 'OMNIPAY_PAYPAL_EXPRESS_SOLUTION_TYPE', '' ),
95+
'landingPage' => env( 'OMNIPAY_PAYPAL_EXPRESS_LANDING_PAGE', '' ),
96+
'headerImageUrl' => env( 'OMNIPAY_PAYPAL_EXPRESS_HEADER_IMAGE_URL', '' ),
97+
'brandName' => 'Your app name',
98+
'testMode' => env( 'OMNIPAY_PAYPAL_TEST_MODE', true )
99+
]
100+
],
101+
]
102+
...
103+
```
104+
105+
82106
### Usage
83107

84108
```php

0 commit comments

Comments
 (0)