traits
4 years ago
base-action.php
4 years ago
capture-payment-action.php
4 years ago
get-token.php
4 years ago
pay-now-action.php
4 years ago
base-action.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Gateways\Paypal\Api_Actions; |
| 5 | |
| 6 | use Jet_Form_Builder\Gateways\Base_Gateway_Action; |
| 7 | use Jet_Form_Builder\Gateways\Gateway_Manager; |
| 8 | |
| 9 | abstract class Base_Action extends Base_Gateway_Action { |
| 10 | |
| 11 | public function base_url(): string { |
| 12 | return Gateway_Manager::instance()->is_sandbox |
| 13 | ? 'https://api-m.sandbox.paypal.com/' |
| 14 | : 'https://api-m.paypal.com/'; |
| 15 | } |
| 16 | |
| 17 | } |
| 18 |