This module is responsible for PayPal content in the gateways modal.
- Source:
- Copyright:
- 2020 Shamim Rezaie
- 2020 Shamim Rezaie
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(static, constant) process
Process the payment.
Methods
(async, inner) showModalWithPlaceholder() → {Promise.<Modal>}
Creates and shows a modal that contains a placeholder.
Returns:
- Type
- Promise.<Modal>
(inner) switchSdk(clientId, currency) → {Promise}
Unloads the previously loaded PayPal JavaScript SDK, and loads a new one.
Parameters:
Name | Type | Description |
---|---|---|
clientId |
string | PayPal client ID |
currency |
string | The currency |
Returns:
- Type
- Promise