31 lines
701 B
PHP
31 lines
701 B
PHP
<?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;
|
|
}
|