File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,28 @@ public function getClientReferenceId()
145
145
return $ this ->getParameter ('client_reference_id ' );
146
146
}
147
147
148
+ /**
149
+ * Set the customer_creation parameter
150
+ *
151
+ * @param string $value
152
+ *
153
+ * @return \Omnipay\Common\Message\AbstractRequest|PurchaseRequest
154
+ */
155
+ public function setCustomerCreation ($ value )
156
+ {
157
+ return $ this ->setParameter ('customer_creation ' , $ value );
158
+ }
159
+
160
+ /**
161
+ * Get the customer_creation parameter
162
+ *
163
+ * @return string
164
+ */
165
+ public function getCustomerCreation ()
166
+ {
167
+ return $ this ->getParameter ('customer_creation ' );
168
+ }
169
+
148
170
public function getData ()
149
171
{
150
172
$ data = array (
@@ -153,9 +175,7 @@ public function getData()
153
175
'cancel_url ' => $ this ->getCancelUrl (),
154
176
'payment_method_types ' => $ this ->getPaymentMethodTypes (),
155
177
'mode ' => $ this ->getMode (),
156
- 'customer_creation ' => $ this ->getParameter ('customer_creation ' ),
157
- 'payment_intent_data ' => $ this ->getParameter ('payment_intent_data ' ),
158
- 'automatic_payment_methods ' => $ this ->getParameter ('automatic_payment_methods ' ),
178
+ 'customer_creation ' => $ this ->getCustomerCreation (),
159
179
'line_items ' => $ this ->getLineItems ()
160
180
);
161
181
You can’t perform that action at this time.
0 commit comments