@@ -52,7 +52,7 @@ public function __construct(
52
52
?string $ cancelUrl = null ,
53
53
?string $ webhookUrl = null ,
54
54
?Metadata $ metadata = null ,
55
- ?string $ paymentMethod = null ,
55
+ ?string $ method = null ,
56
56
?string $ locale = null ,
57
57
?string $ restrictPaymentMethodsToCountry = null ,
58
58
array $ additional = []
@@ -63,7 +63,7 @@ public function __construct(
63
63
$ this ->cancelUrl = $ cancelUrl ;
64
64
$ this ->webhookUrl = $ webhookUrl ;
65
65
$ this ->metadata = $ metadata ;
66
- $ this ->paymentMethod = $ paymentMethod ;
66
+ $ this ->paymentMethod = $ method ;
67
67
$ this ->locale = $ locale ;
68
68
$ this ->restrictPaymentMethodsToCountry = $ restrictPaymentMethodsToCountry ;
69
69
$ this ->additional = $ additional ;
@@ -77,7 +77,7 @@ protected function defaultPayload(): array
77
77
'cancelUrl ' => $ this ->cancelUrl ,
78
78
'webhookUrl ' => $ this ->webhookUrl ,
79
79
'metadata ' => $ this ->metadata ,
80
- 'paymentMethod ' => $ this ->paymentMethod ,
80
+ 'method ' => $ this ->paymentMethod ,
81
81
'locale ' => $ this ->locale ,
82
82
'restrictPaymentMethodsToCountry ' => $ this ->restrictPaymentMethodsToCountry ,
83
83
], $ this ->additional );
0 commit comments