File tree 3 files changed +63
-0
lines changed
3 files changed +63
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ class Subscription
133
133
*/
134
134
private $ affiliate_name ;
135
135
136
+ /**
137
+ * @var array
138
+ */
139
+ protected $ paymentOptions ;
140
+
136
141
/**
137
142
* @return string
138
143
*/
@@ -578,6 +583,22 @@ public function setCustomerLocalTime($customer_local_time)
578
583
return $ this ;
579
584
}
580
585
586
+ /**
587
+ * @return array
588
+ */
589
+ public function getPaymentOptions ()
590
+ {
591
+ return $ this ->paymentOptions ;
592
+ }
593
+
594
+ /**
595
+ * @param array $paymentOptions
596
+ */
597
+ public function setPaymentOptions ($ paymentOptions )
598
+ {
599
+ $ this ->paymentOptions = $ paymentOptions ;
600
+ }
601
+
581
602
582
603
/**
583
604
* @return array
@@ -607,6 +628,7 @@ public function toArray ()
607
628
'customer_ip_address ' => $ this ->getCustomerIpAddress (),
608
629
'customer_local_time ' => $ this ->getCustomerLocalTime (),
609
630
'affiliate_name ' => $ this ->getAffiliateName (),
631
+ 'payment_options ' => $ this ->getPaymentOptions (),
610
632
);
611
633
}
612
634
}
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ class SubscriptionResult
24
24
*/
25
25
private $ messages = array ();
26
26
27
+ private $ payment_reference ;
28
+
29
+ private $ client_secret ;
30
+
27
31
/**
28
32
* @return mixed
29
33
*/
@@ -89,4 +93,39 @@ public function setStatus($status)
89
93
$ this ->status = $ status ;
90
94
return $ this ;
91
95
}
96
+
97
+ /**
98
+ * @return mixed
99
+ */
100
+ public function getPaymentReference ()
101
+ {
102
+ return $ this ->payment_reference ;
103
+ }
104
+
105
+ /**
106
+ * @param mixed $payment_reference
107
+ */
108
+ public function setPaymentReference ($ payment_reference )
109
+ {
110
+ $ this ->payment_reference = $ payment_reference ;
111
+ return $ this ;
112
+ }
113
+
114
+ /**
115
+ * @return mixed
116
+ */
117
+ public function getClientSecret ()
118
+ {
119
+ return $ this ->client_secret ;
120
+ }
121
+
122
+ /**
123
+ * @param mixed $client_secret
124
+ */
125
+ public function setClientSecret ($ client_secret )
126
+ {
127
+ $ this ->client_secret = $ client_secret ;
128
+ return $ this ;
129
+ }
130
+
92
131
}
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ public function create ($data)
18
18
$ created = new SubscriptionResult ();
19
19
20
20
$ created ->setRedirectUrl ($ this ->getValue ('redirect_url ' , $ data , '' ));
21
+ $ created ->setPaymentReference ($ this ->getValue ('payment_reference ' , $ data , '' ));
22
+ $ created ->setClientSecret ($ this ->getValue ('client_secret ' , $ data , '' ));
21
23
$ created ->setStatus ($ this ->getValue ('status ' , $ data , false ));
22
24
23
25
$ dataSubscription = $ this ->getValue ('subscription ' , $ data , array ());
You can’t perform that action at this time.
0 commit comments