File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ let make = (
7
7
~expiryProps : CardUtils .expiryProps ,
8
8
~cvcProps : CardUtils .cvcProps ,
9
9
~isBancontact = false ,
10
+ ~isVault = None ,
10
11
) => {
11
12
open PaymentType
12
13
open PaymentModeType
@@ -438,10 +439,14 @@ let make = (
438
439
439
440
let compressedLayoutStyleForCvcError =
440
441
innerLayout === Compressed && cvcError -> String .length > 0 ? "!border-l-0" : ""
442
+ let vaultClass = switch isVault {
443
+ | Some (_ ) => "mb-[4px] mr-[4px] ml-[4px] mt-[4px]"
444
+ | None => ""
445
+ }
441
446
442
447
<div className = "animate-slowShow" >
443
448
<RenderIf condition = {showFields || isBancontact }>
444
- <div className = " flex flex-col" style = {gridGap : themeObj .spacingGridColumn }>
449
+ <div className = { ` flex flex-col ${vaultClass}` } style = {gridGap : themeObj .spacingGridColumn }>
445
450
<div className = "flex flex-col w-full" style = {gridGap : themeObj .spacingGridColumn }>
446
451
<RenderIf condition = {innerLayout === Compressed }>
447
452
<div
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ let make = () => {
165
165
let dict = res -> getDictFromJson
166
166
let sessionResponse = dict -> getStrArray ("associated_payment_methods" )
167
167
let paymentToken = sessionResponse -> Array .get (0 )
168
- if paymentToken -> Option .isNone {
168
+ if paymentToken -> Option .isSome {
169
169
let msg =
170
170
[("paymentToken" , paymentToken -> Option .getOr ("" )-> JSON .Encode .string )]-> Dict .fromArray
171
171
@@ -226,7 +226,7 @@ let make = () => {
226
226
}, (cardNumber , cardExpiry , cvcNumber ))
227
227
228
228
<div ref = {contentRef -> ReactDOM .Ref .domRef }>
229
- <CardPayment cardProps expiryProps cvcProps />
229
+ <CardPayment cardProps expiryProps cvcProps isVault = Some ( true ) />
230
230
</div >
231
231
}
232
232
You can’t perform that action at this time.
0 commit comments