Block payment sources
Install AI tools
Give your assistant up-to-date guidance for our APIs, with our plugin or without it.
The plugin is still under development. See the AI tools page for details.
- Claude Code
- Cursor
- Codex
- Without installing
Run both commands, in order.
claude plugin marketplace add vippsas/agent-toolkit
claude plugin install vipps-developer@agent-toolkit
Open Settings, then Plugins.
Add vippsas/agent-toolkit as a plugin marketplace, then install the "vipps-developer" plugin.
For the app, add the marketplace "vippsas/agent-toolkit" and then install "vipps-developer". For the CLI, run the following commands.
codex plugin marketplace add vippsas/agent-toolkit
codex plugin add vipps-developer@agent-toolkit
Paste this into any assistant.
Read https://github.com/vippsas/agent-toolkit/blob/main/plugins/vipps-developer/README.md for Vipps MobilePay integration guidance.
For troubleshooting, see the full instructions.
Manage which payment sources are available for wallet payments, including the ability to block commercial cards in Danish and Finnish markets.
In the Danish and Finnish markets, it is possible to block payment sources when using WALLET as the payment method type.
Specify the blockedSources parameter in the
POST:/epayment/v1/payments request.
Currently, commercial cards are the only type of cards that can be blocked.
Authorization​
All ePayment API requests must include a valid Bearer token in the Authorization header.
See Authorization for how to obtain one.
Request​
For example:
{
"amount": {
"value": 49900,
"currency": "NOK"
},
"paymentMethod": {
"type": "WALLET",
"blockedSources": ["COMMERCIAL_CARDS"]
},
"reference": "2810171731400321010",
"userFlow": "WEB_REDIRECT",
"returnUrl": "https://developer.vippsmobilepay.com/docs/example-pages/result-page/",
"paymentDescription": "Reference 2810171731400321010 from webshop.no"
}
This is only available for Danish and Finnish sales units. If you attempt this with a Norwegian sales unit, you will get the error message:
{
"extraDetails": [],
"type": "https://httpstatuses.io/400",
"title": "Blocking sources not applicable",
"status": 400,
"detail": "Not possible to block payment sources for market: 'Norwegian'",
"instance": "/v1/payments"
}
In Norway, there may be cases where your customers can't use a credit card. If this is the case, contact your KAM.