Components
Configure Veem Web SDK components and authorization.
Authorization
Allows your users to authorize Veem to provide your platform with an account details, which can be used in subsequent components.
name | String |
| |
clientId | String |
| |
target | String | body |
|
environment | String | production |
|
onComplete | Function |
| |
onExit | Function |
| |
onError | Function |
|
new Veem.WebSDK({
name: 'authorization',
clientId: '<application_client_id>',
target: '#container',
onComplete: ({ referenceId }) => console.log('Account referenceId:', referenceId),
})Send payment
Allow the ability to your users to initiate payments. Allows you to provide preset payment data on their behalf.
| Property | Function | Default value | Description |
|---|---|---|---|
name | String |
| |
clientId | String |
| |
target | String | body |
|
environment | String | production |
|
onComplete | Function |
| |
onExit | Function |
| |
onError | Function |
| |
preset | Object | {} |
|
new Veem.WebSDK({
name: 'sendPayment',
clientId: '<application_client_id>',
target: '#container',
onComplete: ({ id }) => console.log('Payment created with ID:', id),
preset: {
accountId: 12345,
payerAmount: 500,
payerCurrencyCode: 'USD',
},
})Updated 5 days ago
