Force Approve a payment
To simplify automated testing in the
test environment
the ePayment API provides a "force approve" endpoint that confirms payments
without using the test app:
POST:/epayment/v1/payments/{reference}/approve
.
note
Important: All test users must manually approve at least one payment in Vipps or MobilePay app
before
POST:/epayment/v1/payments/{reference}/approve
can be used for that user. If this has not been done, you will get an error.
This is because the user needs to be registered as "BankID verified" in the backend,
and this happens automatically in the test environment when using the Vipps or MobilePay app,
but not with "force approve".