-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIT-1912] Implement whitelabel installment
move omise token and source inside get_charge_request fix test update test ignore coverage for view form
- Loading branch information
1 parent
aa34827
commit c20f13f
Showing
6 changed files
with
192 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function showOmiseInstallmentForm({ | ||
element, | ||
publicKey, | ||
onSuccess, | ||
onError, | ||
locale, | ||
amount, | ||
}) { | ||
const noop = () => { } | ||
|
||
element.style.height = 500 + 'px' | ||
|
||
OmiseCard.configure({ | ||
publicKey: publicKey, | ||
amount, | ||
element, | ||
iframeAppId: 'omise-checkout-installment-form', | ||
customCardForm: false, | ||
customInstallmentForm: true, | ||
locale: locale, | ||
defaultPaymentMethod: 'installment' | ||
}); | ||
|
||
OmiseCard.open({ | ||
onCreateSuccess: onSuccess ?? noop, | ||
onError: onError ?? noop | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters