Add notes on return value of checkoutSavedMethod
This commit is contained in:
parent
bc4054f8fd
commit
766b0ebf45
@ -172,6 +172,9 @@ exports.init = function () {
|
|||||||
"Card on File\nx1234" // Additional text for receipt
|
"Card on File\nx1234" // Additional text for receipt
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
// Must return true upon success.
|
||||||
|
// If the payment is not successful, and you didn't throw an Error to show the user,
|
||||||
|
// then `return false` instead and it'll appear that the user's action to start the payment did nothing.
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
saveCardForOfflineUse: async function ({statusCallback, customerUUID, name, company, street1, street2, city, state, zip, country, email, phone}) {
|
saveCardForOfflineUse: async function ({statusCallback, customerUUID, name, company, street1, street2, city, state, zip, country, email, phone}) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user