mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 02:25:18 +00:00
Fix instant payment contact info condition (#352)
Some checks failed
Master / Build (push) Has been cancelled
Some checks failed
Master / Build (push) Has been cancelled
This commit is contained in:
parent
b26baa0d23
commit
ea5b03fb5d
@ -19,6 +19,12 @@ const isInstantPaymentContactInfoEligible = (
|
||||
return true;
|
||||
}
|
||||
const { email, phoneNumber } = metadata;
|
||||
// Metadata contactInfo email and phoneNumber are not required, instant payment is eligible
|
||||
if (!email && !phoneNumber) {
|
||||
return true;
|
||||
}
|
||||
|
||||
console.warn(`isInstantPaymentContactInfoEligible, email: ${email}, phoneNumber: ${phoneNumber}`);
|
||||
const { contactInfo } = initContext;
|
||||
if (email && !isNil(contactInfo.email)) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user