Sandbox: Initiating a cVRP payment
Payment initiation request
-
Initiate the payment –
POST /vrpreturns avrpId(asidin the response). The status will always returnRECEIVED.Please use the same
consentIdthat you have created under /POSTvrp-consents
{
"consentId": "E210000BUJ",
"payment": {
"amount": "1.00",
"currency": "GBP",
"reference": "GWE-VRP-001"
},
"interactionType": "IN_SESSION"
}{
"id": "V21000074D",
"status": "RECEIVED"
}- Check the payment status –
GET /vrp/{id}returns the payment status, which will always beACCEPTEDSETTLEMENTCOMPLETEDDEBITORACCOUNT.
{
"consentId": "E210000BUJ",
"payment": {
"currency": "GBP",
"amount": 1.00,
"reference": "GWE-VRP-001"
},
"status": "ACCEPTEDSETTLEMENTCOMPLETEDDEBITORACCOUNT",
"interactionType": "IN_SESSION"
}If you would like to test some payment error scenarios - below are some examples. You may also wish to test your own error scenarios.
Error scenario 1: Consent expired
To simulate a rejection caused by an expired consent, submit a payment against a consent whose validToDate has elapsed.
{
"consentId": "I000000002",
"payment": {
"currency": "GBP",
"amount": 50,
"reference": "GWE-VRP-002"
},
"interactionType": "OffSession",
"risk": {
"merchantCategoryCode": "4900",
"merchantCustomerIdentification": "CUST-001",
"contractPresentIndicator": true,
"beneficiaryPrepopulatedIndicator": true,
"paymentPurposeCode": "BKDF",
"categoryPurposeCode": "BONU"
}
}{
"field": "consentId",
"code": "INVALID",
"message": "Consent has expired and cannot be used to initiate payments"
}Error scenario 2: Individual payment limit exceeded
To simulate a per-payment limit breach, submit a payment where amount exceeds the maximumIndividualAmount set on the consent. For example, if the consent allows a maximum of £250 per payment, submit a payment of £300.
{
"consentId": "I000000001",
"payment": {
"currency": "GBP",
"amount": 300,
"reference": "GWE-VRP-001"
},
"interactionType": "OffSession",
"risk": {
"merchantCategoryCode": "4900",
"merchantCustomerIdentification": "CUST-001",
"contractPresentIndicator": true,
"beneficiaryPrepopulatedIndicator": true,
"paymentPurposeCode": "BKDF",
"categoryPurposeCode": "BONU"
}
}{
"field": "payment.amount",
"code": "INVALID",
"message": "Payment amount exceeds the maximumIndividualAmount permitted by the consent"
}Updated 1 day ago

