paygw_paypal/gateway_modal

This module is responsible for PayPal content in the gateways modal.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) process

Source:

Process the payment.

Methods

(async, inner) showModalWithPlaceholder() → {Promise.<Modal>}

Source:

Creates and shows a modal that contains a placeholder.

Returns:
Type
Promise.<Modal>

(inner) switchSdk(clientId, currency) → {Promise}

Source:

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