VippsMobilePayEPayments
The APIs to manage ePayments for VippsMobilePay WALLET using QR codes.
You can use these APIs to : -
- - create a new payment,
- - query a payment details,
- - query latest payment state from payment events logs,
- - capture a payment (Note: You can only capture a payment when its status is Authorized by the user),
- - cancel a payment,
- - refund a payment.
This implementation of VippsMobilePay WALLET ePayment has two type User checkout flow.
- Checkout paymnent is initiated on the device
For payments initiated on a device other than the user's phone, the user gets a push message that opens the payment in the app. The merchant must have received the phone number from the customer with their consent for sending a payment request to the user's phone via Vipps or MobilePay app Simply initiate the payment where the userFlow parameter is set to PUSHMESSAGE.
Basically what is needed, is as follows
- - create a new payment (api/vipps/payment/create) set UserFlow = PUSHMESSAGE,
- - check/poll to get payment details and check the payment status (api/vipps/payment/details). If the payment is Authorized, that's where you can capture the payment,
- - capture a payment (api/vipps/payment/capture) (Note: You can only capture a payment when its status is Authorized),
- Checkout has customer facing screens
Simply initiate the payment where the userFlow parameter is set to QR. Then, the response will contain a link to a dynamic QR code, which the checkout then downloads and shows on their customer facing screen. The user scans the QR and completes the payment flow.
Basically what is needed, is as follows
- - create a new payment (api/vipps/payment/create) set UserFlow = QR, you will receive the payment result object with QR code URL that the user can scan,
- - check/poll to get payment details and check the payment status (api/vipps/payment/details). If the payment is Authorized, that's where you can capture the payment,
- - capture a payment (api/vipps/payment/capture) (Note: You can only capture a payment when its status is Authorized),
The payment flow that is recommended is the first one (PUSH_MESSAGE Flow).
VippsMobilePayAccessTokenManagement
The APIs to manage point of sales (pos).
You can request to create an access token. The access token is valid only for 24 hours
If you would like to reset the access token, you will need to provide the old access token.
| API | Description |
|---|---|
| GET api/vipps/manage/token?bioCode={bioCode}&oldAccessToken={oldAccessToken} |
Creates an accessToken to be used to access VippsMobilePay ePayment API. |
| POST api/vipps/manage/token |
Creates a merchant AccessToken using a POST REQUEST |