Vipps MobilePay Provider
Vipps MobilePay is a widespread mobile payment application for mobile in Norway, Sweden, Denmark and Finland. The brand is split, where you have Vipps in Norway and Sweden, and MobilePay in Denmark and Finland, but both brands/apps are using the same API.
Resources
- Vipps MobilePay login documentation
- Official Vipps MobilePay Buttons
- Vipps MobilePay Public Testing discovery endpoint
- Vipps MobilePay Public Production discovery endpoint
Setup
Callback URL
https://example.com/api/auth/callback/vipps
Environment Variables
AUTH_VIPPS_ID
AUTH_VIPPS_SECRET
Test API
To use the test mode, you need to override the issuer with the test API endpoint.
Vipps({ issuer: "https://apitest.vipps.no/access-management-1.0/access/" })
Configuration
/auth.ts
import NextAuth from "next-auth"
import Vipps from "next-auth/providers/vipps"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [Vipps],
})