Skip to content

Create A Payment Agreement

Create a PayTo Payment Agreement

This article describes the different scenarios that can be simulated in the Sandbox environment. An amount field is used to control the desired behaviour.

NOTE: These scenarios use the POST operation against the /customers/{id}/PaymentInstruments resource

Simulate an Authorised Payment Agreement

This scenario simulates a Payment Agreement being created and then authorised by the customer in their banking app. The paymentAgreement.agreementStatus will change from created to active and you will receive a webhook with the updated status.

Payment Agreement TypePayload PropertyValue
Balloon AgreementpaymentAgreement.agreementDetails.balloonAgreementDetails.amount10010
Variable AgreementpaymentAgreement.agreementDetails.variableAgreementDetails.maximumAmount10010
Fixed AgreementpaymentAgreement.agreementDetails.fixedAgreementDetails.amount10010
Usage AgreementpaymentAgreement.agreementDetails.usageAgreementDetails.maximumAmount10010

Simulate a Rejected Payment Agreement

This scenario simulates a Payment Agreement being created and then rejected by the customer in their banking app. The paymentAgreement.agreementStatus will change from created to cancelled and you will receive a webhook with the updated status.

Payment Agreement TypePayload PropertyValue
Balloon AgreementpaymentAgreement.agreementDetails.balloonAgreementDetails.amount10050
Variable AgreementpaymentAgreement.agreementDetails.variableAgreementDetails.maximumAmount10050
Fixed AgreementpaymentAgreement.agreementDetails.fixedAgreementDetails.amount10050
Usage AgreementpaymentAgreement.agreementDetails.usageAgreementDetails.maximumAmount10050

Simulate an Active Payment Agreement Being Cancelled

This scenario simulates an active Payment Agreement being cancelled by the customer in their banking app. The paymentAgreement.agreementStatus will go through the full lifecycle of being created to active, then finally to cancelled. You will receive a webhook with the updated status for each step.

Payment Agreement TypePayload PropertyValue
Balloon AgreementpaymentAgreement.agreementDetails.balloonAgreementDetails.amount10020
Variable AgreementpaymentAgreement.agreementDetails.variableAgreementDetails.maximumAmount10020
Fixed AgreementpaymentAgreement.agreementDetails.fixedAgreementDetails.amount10020
Usage AgreementpaymentAgreement.agreementDetails.usageAgreementDetails.maximumAmount10020

Simulate an Active Payment Agreement Being Suspended

This scenario simulates an active Payment Agreement being paused by the customer in their banking app. The paymentAgreement.agreementStatus will go through the full lifecycle of being created to active, then finally to suspended. You will receive a webhook with the updated status for each step.

Payment Agreement TypePayload PropertyValue
Balloon AgreementpaymentAgreement.agreementDetails.balloonAgreementDetails.amount10030
Variable AgreementpaymentAgreement.agreementDetails.variableAgreementDetails.maximumAmount10030
Fixed AgreementpaymentAgreement.agreementDetails.fixedAgreementDetails.amount10030
Usage AgreementpaymentAgreement.agreementDetails.usageAgreementDetails.maximumAmount10030

Simulate an Suspended Payment Agreement Being Cancelled

This scenario simulates an active Payment Agreement being paused by the customer in their banking app and then later cancelled. The paymentAgreement.agreementStatus will go through the full lifecycle of being created to active, then to suspended and finally cancelled. You will receive a webhook with the updated status for each step.

Payment Agreement TypePayload PropertyValue
Balloon AgreementpaymentAgreement.agreementDetails.balloonAgreementDetails.amount10040
Variable AgreementpaymentAgreement.agreementDetails.variableAgreementDetails.maximumAmount10040
Fixed AgreementpaymentAgreement.agreementDetails.fixedAgreementDetails.amount10040
Usage AgreementpaymentAgreement.agreementDetails.usageAgreementDetails.maximumAmount10040