Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 676 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 676 Revision 991
Zeile 65... Zeile 65...
65
## Override PayPal API Configuration
65
## Override PayPal API Configuration
Zeile 66... Zeile 66...
66
 
66
 
Zeile 67... Zeile 67...
67
You can override PayPal API configuration by calling `setApiCredentials` method:
67
You can override PayPal API configuration by calling `setApiCredentials` method:
-
 
68
 
-
 
69
```php
-
 
70
$config = [
-
 
71
    'mode'    => 'live',
-
 
72
    'live' => [
-
 
73
        'client_id'         => 'PAYPAL_LIVE_CLIENT_ID',
-
 
74
        'client_secret'     => 'PAYPAL_LIVE_CLIENT_SECRET',
-
 
75
        'app_id'            => 'PAYPAL_LIVE_APP_ID',
-
 
76
    ],
-
 
77
 
-
 
78
    'payment_action' => 'Sale',
-
 
79
    'currency'       => 'USD',
-
 
80
    'notify_url'     => 'https://your-site.com/paypal/notify',
-
 
81
    'locale'         => 'en_US',
68
 
82
    'validate_ssl'   => true,
69
```php
83
];
Zeile 70... Zeile 84...
70
$provider->setApiCredentials($config);
84
$provider->setApiCredentials($config);