@@ -52,7 +52,7 @@ public function __construct(
5252 ?string $ cancelUrl = null ,
5353 ?string $ webhookUrl = null ,
5454 ?Metadata $ metadata = null ,
55- ?string $ paymentMethod = null ,
55+ ?string $ method = null ,
5656 ?string $ locale = null ,
5757 ?string $ restrictPaymentMethodsToCountry = null ,
5858 array $ additional = []
@@ -63,7 +63,7 @@ public function __construct(
6363 $ this ->cancelUrl = $ cancelUrl ;
6464 $ this ->webhookUrl = $ webhookUrl ;
6565 $ this ->metadata = $ metadata ;
66- $ this ->paymentMethod = $ paymentMethod ;
66+ $ this ->paymentMethod = $ method ;
6767 $ this ->locale = $ locale ;
6868 $ this ->restrictPaymentMethodsToCountry = $ restrictPaymentMethodsToCountry ;
6969 $ this ->additional = $ additional ;
@@ -77,7 +77,7 @@ protected function defaultPayload(): array
7777 'cancelUrl ' => $ this ->cancelUrl ,
7878 'webhookUrl ' => $ this ->webhookUrl ,
7979 'metadata ' => $ this ->metadata ,
80- 'paymentMethod ' => $ this ->paymentMethod ,
80+ 'method ' => $ this ->paymentMethod ,
8181 'locale ' => $ this ->locale ,
8282 'restrictPaymentMethodsToCountry ' => $ this ->restrictPaymentMethodsToCountry ,
8383 ], $ this ->additional );
0 commit comments