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
.
Express checkout is not supported for this endpoint. Attempted use in production is not allowed, and will fail. Important: All test users must manually approve at least one payment in the Vipps or MobilePay app before this endpoint can be used for that user.
You may get HTTP 500 Internal Server Error
for an expired card. If this is the case,
you should create a new test user.