@uphold/enterprise-payment-widget-web-sdk
package.
PaymentWidgetSession
object that must be created through the API before instantiating the Widget.
Parameter | Type | Required | Description |
---|---|---|---|
session | PaymentWidgetSession | Yes | Payment session object obtained from the Create Session API endpoint |
options | PaymentWidgetOptions | No | Configuration options for the Widget |
complete
event.
Examples:
Property | Type | Default | Description |
---|---|---|---|
debug | boolean | false | Enable debug mode for additional logging |
mountIframe()
element
: The HTML element where the Widget should be mountedunmount()
on()
event
: The event name to listen forcallback
: Function to execute when the event is triggeredoff()
event
: The event name to stop listening forcallback
: The specific function to remove (must be the same reference as used in on()
)on()
method.
complete
event.detail.value
depends on the flow type:
select-for-deposit
flow
For deposit selection flows, the value contains the user’s deposit method selection:
Example:
select-for-withdrawal
flow
For withdrawal selection flows, the value contains the user’s withdrawal method selection:
Example:
authorize
flow
For authorization flows, the value contains transaction details and trigger information:
Example:
cancel
error
ready
select-for-deposit
flow:
ExternalAccount
: External AccountsAccountDepositMethod
: Account Deposit MethodsAccount
: Accountsselect-for-withdrawal
flow:
ExternalAccount
type definition, see the External Accounts API documentation.authorize
flow:
Transaction
type definition, see the Transactions API documentation.