Functions
paygreenjs
variable has many methods.
Example :
window.addEventListener("load", function () {
paygreenjs.setLanguage("en");
});
Name | Description |
---|---|
init | Init the payment form. |
unmount | Unmount the form. |
useInstrument | Use an instrument to complete the actual payment flow. |
status | Give the actual state of flows |
submitPayment | Manually submit the payment form. |
focus | Change the actual field focus. |
on | Listen an event. |
off | Remove an event listener previoulsy attached |
Events | List all available events |
updateConsent | Change the actual state of the consent. |
setPaymentMethod | Change the payment method of the actual flow. |
setLanguage | Change the current language of PGJS. Take language as param example: setLanguage("en") |
version | Show current version |
Updated 10 days ago