-
Notifications
You must be signed in to change notification settings - Fork 2
/
Settings.php
43 lines (40 loc) · 1.26 KB
/
Settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
namespace Dfe\TwoCheckout;
use Twocheckout as T;
/** @method static Settings s() */
final class Settings extends \Df\StripeClone\Settings {
/**
* 2016-05-18
* @used-by self::init()
* @used-by \Dfe\TwoCheckout\ConfigProvider::config()
* @used-by \Dfe\TwoCheckout\Method::charge()
*/
function accountNumber():string {return $this->testable();}
/**
* 2016-05-19
* https://github.com/2Checkout/2checkout-php#credentials-and-options
* @override
* @see \Df\Payment\Settings::init()
* @used-by \Df\Payment\Method::action()
*/
function init():void {
# 2022-11-16
# The @see \Twocheckout::sandbox() method has been removed: https://github.com/2Checkout/2checkout-php/commit/f1f44364
# The previous code was:
# T::sandbox($this->test());
T::username($this->testable('username'));
T::password($this->testableP('password'));
T::privateKey($this->privateKey());
T::sellerId($this->accountNumber());
}
/**
* 2016-05-23 «Mage2.PRO» → «Payment» → «2Checkout» → «Pass Order Items to the Payment Gateway?»
* @used-by \Dfe\TwoCheckout\Charge::pCharge()
*/
function passOrderItems():bool {return $this->b();}
/**
* 2016-05-22
* @used-by \Dfe\TwoCheckout\Handler::p()
*/
function secretWord():string {return $this->testableP();}
}