App Payments to ePayment
Read more about the transition to one platform on the MobilePay site. Below, you can find comparison between the existing MobilePay App Payments API and the new ePayment API replacing MobilePay App Payments.
If a partner developed your implementation, please talk with them.
Authentication and management
We will have a joint authentication solution across our API platform and introduce a Management API to retrieve merchant data. Read more here.
App Payments and ePayment endpoints
Operation | MobilePay App Payments | ePayment |
---|---|---|
Initiate Payment | POST:/v1/payments | POST:/epayment/v1/payments |
Fetch Single Payment | GET:/v1/payments/{paymentid} | GET:/epayment/v1/payments/{reference} |
Fetch a list of payments | GET /v1/payments | N/A |
Query payment log | N/A | GET:/epayment/v1/payments/{reference}/events |
Capture Payment | POST:/v1/payments/{paymentid}/capture | POST:/epayment/v1/payments/{reference}/capture |
Cancel Payment | POST:/v1/payments/{paymentid}/cancel | POST:/epayment/v1/payments/{reference}/cancel |
Issue new refund | POST:/v1/refunds | POST:/epayment/v1/payments/{reference}/refund |
fetch a list of refunds | GET:/v1/refunds | N/A |
fetch single refund | GET:/v1/refunds/{refundid} | GET:/epayment/v1/payments/{reference} |
Authentication and headers
See:
MobilePay App Payments | ePayment |
---|---|
apiKey or openId | Authorization (POST:/accesstoken/get ) |
N/A | Vipps-System-Version (see HTTP headers) |
N/A | Vipps-System-Name (see HTTP headers) |
N/A | Vipps-System-Plugin-Name (see HTTP headers) |
N/A | Vipps-System-Plugin-Version (see HTTP headers) |
X-MobilePay-Idempotency-Key | Idempotency-Key (see Idempotency) |
N/A | Ocp-Apim-Subscription-Key |
N/A | Merchant-Serial-Number |
Initiate Payment
See:
MobilePay App Payments | ePayment |
---|---|
amount | amount (currency , value ) |
idempotencyKey | Idempotency-Key |
reference | paymentDescription |
paymentPointId | Merchant-Serial-Number |
redirectUri | returnUrl |
description | paymentDescription |
customerPhoneNumber (Used for dual device flows on web) | customer (phoneNumber ) |
N/A | customerInteraction ("CUSTOMER_NOT_PRESENT" ) |
N/A | paymentMethod (type "WALLET" ) |
N/A | reference |
N/A | userFlow ("NATIVE_REDIRECT" "WEB_REDIRECT" ) |
Response | |
paymentId | reference (set in paymentInitiation) |
Query Payment
See:
MobilePay App Payments | ePayment |
---|---|
paymentId | reference |
Response | |
paymentId | reference |
amount | amount (currency , value ) |
description | N/A |
state | state |
N/A | aggregate (authorizedAmount , cancelledAmount , capturedAmount , refundedAmount ) |
N/A | paymentMethod (type ) |
N/A | profile (sub ) (see What is the sub ?) |
N/A | pspReference |
Capture, Cancel and Refund Payment
See:
MobilePay App payments | ePayment |
---|---|
paymentId | reference |
amount | modificationAmount (currency , value ) not applicable for cancel |
Response | |
N/A | amount (currency , value ) |
N/A | state |
N/A | aggregate (authorizedAmount , cancelledAmount , capturedAmount , refundedAmount ) |
refundId only applicable for refund | N/A |
N/A | pspReference |
N/A | reference |
Test environment
The test environment is called Merchant Test (MT) and is now open for test. MT currently only allows Norwegian phone numbers, currency and merchants, but you can test the API and payment flow. Please see the details of limitations of the test environment.
Management API and Report API is not available in MT and can only be tested in production.
In order to request access to the test environment, please use the following links:
We will e-mail you with the information you need to get started. This is also needed even though you are an existing MobilePay integrator or merchant, since we need your information registered on our new joint platform.