Create Account
Velocity Android Software Development Kit Integration Guide
Invoke the saveAccount
call to receive a callback in display to create, and then save an account.
public void saveAccount(fullname : String, card : mPointCardInfo, cardname : String, address : mPointAddressInfo, authToken : String)
You must configure at least one of the following parameters to enable customers to create a profile:
- Mobile
- Email address
- Customer reference or customer ID
Note: A customer ID is unique and depends on the configured identification parameter.
You can configure this API in the following manner:
- Store account of customers directly in mPoint, which users can access using a password.
- Use single sign-on to verify a profile:
- Valid for both mProfile and third-party profile (mandatory)
- You must share authorization token with request if you are using an external CRM.
An eua-id is created after the profile of your customer is saved with Velocity. The following table provides the values of eua-id used to identify APIs that are called.
Eua-id | APU method used |
---|---|
-1 | Save account |
Greater than 0 | Save card |
The descriptions of the parameters are listed in the table below.
Parameter | Type | Description |
---|---|---|
fullname | String | The full name of the customer; pass this value as null to avoid collecting this information. |
card | Integer | A payment card that was used for the authorization; pass it as null if a customer does not name the card. |
cardname | String | The card name entered by a customer; pass it as null if the does not name the card. |
address | String | The billing address of a customer. |
authToken | String | The authentication token generated when a customer logs in. |
Updated 3 months ago