@@ 18-30 (lines=13) @@ | ||
15 | * |
|
16 | * @return array |
|
17 | */ |
|
18 | public function createRecurringMonthlySubscription($token, $amount, $description) |
|
19 | { |
|
20 | $data = [ |
|
21 | 'PROFILESTARTDATE' => Carbon::now()->toAtomString(), |
|
22 | 'DESC' => $description, |
|
23 | 'BILLINGPERIOD' => 'Month', |
|
24 | 'BILLINGFREQUENCY' => 1, |
|
25 | 'AMT' => $amount, |
|
26 | 'CURRENCYCODE' => $this->currency, |
|
27 | ]; |
|
28 | ||
29 | return $this->createRecurringPaymentsProfile($data, $token); |
|
30 | } |
|
31 | ||
32 | /** |
|
33 | * Create recurring subscription on yearly basis. |
|
@@ 41-53 (lines=13) @@ | ||
38 | * |
|
39 | * @return array |
|
40 | */ |
|
41 | public function createRecurringYearlySubscription($token, $amount, $description) |
|
42 | { |
|
43 | $data = [ |
|
44 | 'PROFILESTARTDATE' => Carbon::now()->toAtomString(), |
|
45 | 'DESC' => $description, |
|
46 | 'BILLINGPERIOD' => 'Year', |
|
47 | 'BILLINGFREQUENCY' => 1, |
|
48 | 'AMT' => $amount, |
|
49 | 'CURRENCYCODE' => $this->currency, |
|
50 | ]; |
|
51 | ||
52 | return $this->createRecurringPaymentsProfile($data, $token); |
|
53 | } |
|
54 | } |