API version: 2.0
Document version 1.2.6.
- Integrate all the API endpoints described in our guide:
- Agreement: Create an agreement
POST:/recurring/v2/agreements
- Agreement: Retrieve an agreement
GET:/recurring/v2/agreements/{agreementId}
- Agreement: Update an agreement
PATCH:/recurring/v2/agreements/{agreementId}
- Agreement: List charges
GET::/recurring/v2/agreements/{agreementId}/charges
- Charge: Create Charge
POST:/recurring/v2/agreements/{agreementId}/charges
- Charge: Retrieve a charge
GET:/recurring/v2/agreements/{agreementId}/charges/{chargeId}
- Charge: Cancel a charge
DELETE:/recurring/v2/agreements/{agreementId}/charges/{chargeId}
- Charge: Refund a charge
POST:/recurring/v2/agreements/{agreementId}/charges/{chargeId}/refund
- Charge: Capture a reserved initial charge
POST:/recurring/v2/agreements/{agreementId}/charges/{chargeId}/capture
- For examples of requests and responses, see the Postman collection in tools.
- Send the Vipps HTTP headers
in all API requests for better tracking and troubleshooting (mandatory for partners and platforms):
-
Merchant-Serial-Number
-
Vipps-System-Name
-
Vipps-System-Version
-
Vipps-System-Plugin-Name
-
Vipps-System-Plugin-Version
-
- Agreement: Create an agreement
- Avoid Integration pitfalls
- The Merchant must not rely on
Redirect
alone, but must always pollGET:/recurring/v2/agreements/{agreementId}
to check the status of the agreement. - The Vipps branding must be according to the Vipps design guidelines
- The merchant must have a way for the user to manage and stop subscription in merchantAgreementUrl in their Agreement. This should result in a timely update of the Vipps Agreement.
- Vipps never generates charges automatically on behalf of the Merchant. Every charge is the responsibility of the Merchant.
- Make sure your customer service, etc has all the tools and information they need available in your system, through the APIs listed in the first item in this checklist, and that they do not need to visit portal.vipps.no for normal work.
- The Merchant must not rely on
- The merchant orders Vipps på Nett.
- Vipps completes customer control (KYC, PEP, AML, etc).
- The merchant receives an email from Vipps saying that they can log in with bankID on portal.vipps.no and retrieve API keys.
- The merchant completes all checklist items.
- The merchant contacts Vipps with the MSN to check.
Vipps will check agreements and charges in the Vipps test environment, showing that all checklist items have been fulfilled:
- A complete Agreement ending in
ACTIVE
. - A complete Agreement ending in
STOPPED
. - A complete
"type":"RECURRING"
Charge ending inCHARGED
. - A complete
"type":"RECURRING"
Charge ending inREFUNDED
.
- A complete Agreement ending in
- The merchant receives an email from Vipps saying that the MSN is OK.
- The recurring merchant starts using the MSN and API keys for the production environment.
- The merchant verifies that what worked in the test environment also work in the production environment. Please note: Vipps does not do any kind of activation or make any changes based on this checklist. The API keys for the production environment are made available on portal.vipps.no as soon as the customer control (see step 2) is completed, independently of this checklist.
- The Merchant goes live 🎉
We're always happy to help with code or other questions you might have! Please create an issue, a pull request, or contact us.
Sign up for our Technical newsletter for developers.