File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -569,11 +569,14 @@ let applePayThirdPartySdkBody = (~connectors) => [
569
569
),
570
570
]
571
571
572
- let cryptoBody = [
572
+ let cryptoBody = () => [
573
573
("payment_method" , "crypto" -> JSON .Encode .string ),
574
574
("payment_method_type" , "crypto_currency" -> JSON .Encode .string ),
575
575
("payment_experience" , "redirect_to_url" -> JSON .Encode .string ),
576
- ("payment_method_data" , []-> Utils .getJsonFromArrayOfJson ),
576
+ (
577
+ "payment_method_data" ,
578
+ [("crypto" , []-> Utils .getJsonFromArrayOfJson )]-> Utils .getJsonFromArrayOfJson ,
579
+ ),
577
580
]
578
581
579
582
let afterpayRedirectionBody = () => [
@@ -997,7 +1000,7 @@ let getPaymentBody = (
997
1000
) =>
998
1001
switch paymentMethodType {
999
1002
| "afterpay_clearpay" => afterpayRedirectionBody ()
1000
- | "crypto_currency" => cryptoBody
1003
+ | "crypto_currency" => cryptoBody ()
1001
1004
| "sofort" => sofortBody (~country , ~name = fullName , ~email )
1002
1005
| "ideal" => iDealBody (~name = fullName , ~bankName = bank )
1003
1006
| "eps" => epsBody (~name = fullName , ~bankName = bank )
You can’t perform that action at this time.
0 commit comments