Extending support for Paypal Sandbox
This commit is contained in:
parent
7b1e698fd0
commit
8c6648af19
|
@ -113,6 +113,14 @@ return [ // Ordered by ABC.
|
||||||
'beta' => false,
|
'beta' => false,
|
||||||
'mock' => false
|
'mock' => false
|
||||||
],
|
],
|
||||||
|
'paypal_sandbox' => [
|
||||||
|
'developers' => 'https://developer.paypal.com/docs/api/overview/',
|
||||||
|
'icon' => 'icon-paypal_sandbox',
|
||||||
|
'enabled' => true,
|
||||||
|
'form' => false,
|
||||||
|
'beta' => false,
|
||||||
|
'mock' => false
|
||||||
|
],
|
||||||
'salesforce' => [
|
'salesforce' => [
|
||||||
'developers' => 'https://developer.salesforce.com/docs/',
|
'developers' => 'https://developer.salesforce.com/docs/',
|
||||||
'icon' => 'icon-salesforce',
|
'icon' => 'icon-salesforce',
|
||||||
|
|
BIN
public/images/oauth2/paypal_sandbox.png
Normal file
BIN
public/images/oauth2/paypal_sandbox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
|
@ -22,7 +22,7 @@ class Paypal extends OAuth2
|
||||||
'live' => 'https://api.paypal.com/v1/',
|
'live' => 'https://api.paypal.com/v1/',
|
||||||
];
|
];
|
||||||
|
|
||||||
private $environment = 'live';
|
protected $environment = 'live';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
|
|
19
src/Appwrite/Auth/OAuth2/PaypalSandbox.php
Normal file
19
src/Appwrite/Auth/OAuth2/PaypalSandbox.php
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Appwrite\Auth\OAuth2;
|
||||||
|
|
||||||
|
use Appwrite\Auth\OAuth2\Paypal;
|
||||||
|
|
||||||
|
|
||||||
|
class PaypalSandbox extends Paypal
|
||||||
|
{
|
||||||
|
protected environment = 'sandbox';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getName(): string
|
||||||
|
{
|
||||||
|
return 'paypal_sandbox';
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue