mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge pull request #469 from armino-dev/add-paypal-sandbox-provider
Extending Paypal OAuth2 provider to Paypal Sandbox
This commit is contained in:
@@ -113,6 +113,14 @@ return [ // Ordered by ABC.
|
||||
'beta' => false,
|
||||
'mock' => false
|
||||
],
|
||||
'paypalSandbox' => [
|
||||
'developers' => 'https://developer.paypal.com/docs/api/overview/',
|
||||
'icon' => 'icon-paypal-sandbox',
|
||||
'enabled' => true,
|
||||
'form' => false,
|
||||
'beta' => false,
|
||||
'mock' => false
|
||||
],
|
||||
'salesforce' => [
|
||||
'developers' => 'https://developer.salesforce.com/docs/',
|
||||
'icon' => 'icon-salesforce',
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
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/',
|
||||
];
|
||||
|
||||
private $environment = 'live';
|
||||
protected $environment = 'live';
|
||||
|
||||
/**
|
||||
* @var array
|
||||
|
||||
@@ -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 'paypalSandbox';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user