Add To Mobile Wallet
Mobile wallets are a convenient way to pay with your debit cards using your smartphone.
Use Visa's In-App Provisioning SDK to enable this capability for your end-users.
Contact Unit for the SDK's documentation and binaries.
#
SDK IntegrationAn AppID is required when calling the SDK's initialize
method:
Name | AppID |
---|---|
Sandbox | b8186bd9-fcba-b77a-11e3-1c0d2e5a3501 |
Live | Please contact Unit |
Get mobile wallet payload#
Get the mobile wallet encrypted payload for the specified card. The encrypted payload is unique per issuance and is required as part of the SDK integration.
caution
Please note that the Sandbox URL for this operation includes a "secure" prefix: https://secure.api.s.unit.sh. Please contact Unit for the Live URL.
Verb | POST |
Url | https://secure.api.s.unit.sh/cards/:id/mobile-wallet-payload |
Required Scope | cards |
Timeout (Seconds) | 5 |
#
AttributesName | Type | Description |
---|---|---|
signedNonce | string | The signedNonce received from the Visa SDK |
Example Request:
curl -X POST 'https://secure.api.s.unit.sh/cards/1/mobile-wallet-payload'-H 'Content-Type: application/vnd.api+json'-H 'Authorization: Bearer ${TOKEN}'--data-raw '{ "data": { "attributes": { "signedNonce": "eyJle..." } }}'
#
ResponseResponse is a JSON:API document.
#
200 OKField | Type | Description |
---|---|---|
data | MobileWalletPayload | A JSON object containing the encrypted payload. |
Example Response:
{ "data": { "type": "mobileWalletPayload", "attributes": { "payload": "eyJhbGciOi..." } }}