Total Complexity | 2 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait BillingAgreements { |
||
6 | |||
7 | /** |
||
8 | * Creates a billing agreement token. |
||
9 | * |
||
10 | * @param array $data |
||
11 | * |
||
12 | * @throws \Throwable |
||
13 | * |
||
14 | * @return array|\Psr\Http\Message\StreamInterface|string |
||
15 | * |
||
16 | * @see https://developer.paypal.com/limited-release/reference-transactions/#link-createbillingagreementtoken |
||
17 | */ |
||
18 | public function createBillingAgreementToken (array $data) { |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * After payer approval, use a billing agreement token to create the agreement. |
||
30 | * |
||
31 | * @param string $billingAgreementToken |
||
32 | * |
||
33 | * @throws \Throwable |
||
34 | * |
||
35 | * @return array|\Psr\Http\Message\StreamInterface|string |
||
36 | * |
||
37 | * @see https://developer.paypal.com/limited-release/reference-transactions/#link-createbillingagreement |
||
38 | */ |
||
39 | public function createBillingAgreement (string $billingAgreementToken) { |
||
47 |