first commit
This commit is contained in:
30
class/payments/class.PayPalCheckout.php
Normal file
30
class/payments/class.PayPalCheckout.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
if (!class_exists('PayPal')) {
|
||||
require_once 'class.PayPal.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Dependencies: `composer require paypal/paypal-checkout-sdk`
|
||||
* enable PayPalCheckoutBundle (payments submodule Modules::SUB_PAYPAL_CHECKOUT)
|
||||
* $cfg['Modules']['payments']['PayPalCheckout'] = [
|
||||
* 'delivery_type_id' => 3,
|
||||
* 'clientID' => 'clientID',
|
||||
* 'secret' => 'secret',
|
||||
* 'mode' => 'sandbox',
|
||||
* ];.
|
||||
*/
|
||||
class PayPalCheckout extends PayPal
|
||||
{
|
||||
public static $name = 'PayPal Checkout platební brána';
|
||||
|
||||
public $template = 'payment.PayPal.tpl';
|
||||
|
||||
public $class = 'PayPalCheckout';
|
||||
|
||||
public $tp_id_payment;
|
||||
|
||||
public $method;
|
||||
|
||||
protected $pay_method = Payment::METHOD_ONLINE;
|
||||
}
|
||||
Reference in New Issue
Block a user