orchestrasolutions-ewallet
v1.0.10
Published
Orchestra Solutions library for eWallet payments (GooglePay, ApplePay, PayPal, Banks...)
Maintainers
Readme
Installation
npm i @orchestrasolutions/ewalletQuick Start
Initialize the Engine
const engine = new eWallet.Engine(sessionToken, requiredAncillaryInfo, language);| Parameter | Description |
|-----------|-------------|
| sessionToken | Required. Token obtained from the Orchestra service |
| requiredAncillaryInfo | Optional. Billing/shipping address requirements (applicable on most eWallets) |
| language | Optional. Language code for UI localization. Supported languages: EN, ES, FR, DE, IT, PT, NL, PL, RU, JA, ZH, KO, AR, HE, TR, SV, NO, DA, FI, and more. |
Detect Available eWallets
const available = engine.checkAvailability();Returns the list of eWallets available on the specific device and browser.
Start a Payment Session
engine.payBy(eWalletList, callback, buttonProperties);Starts the payment process using the specified list of eWallet providers.
| Parameter | Description |
|-----------|-------------|
| eWalletList | Required. List of requested eWallet providers and their respective button properties |
| callback | Required. Callback handler called when the payment operation completes |
| buttonProperties | Optional. Button styling properties |
Obtaining Results
Use the following methods to get data on the current session:
| Method | Description |
|--------|-------------|
| getSessionType() | Returns the session type (CHARGE, TOKENIZE, etc.) |
| parseResultToken() | Parses and returns the result token from the payment operation |
| getBillingInfo() | Returns the billing information collected during the payment |
| getShippingInfo() | Returns the shipping information collected during the payment |
Documentation
In order to use this library to process payments, you need to have an account with Orchestra. If you do not have one yet, please go to our website to sign up. If you already have an account, check out our documentation pages to read our integration guides, view the full API reference and see instructions on generating a session token for the library.
Support
For assistance, visit our contact form or email [email protected].
Changelog
See CHANGELOG.md for version history.
