Request for Payment allows a payment receiver (or beneficiary) to send a payment request to a payment sender (or originator) to initiate a payment.
Request For Payment requires that both receiver and sender use RippleNet Server 4.1.0 or higher.
The receiver creates a "Request for Payment" by sending a Request For Payment request:
POST {base_url}/v4/request_for_paymentThis generates a
RequestForPaymentRequestobject and delivers it to to the sender. The object is automatically returned with arequest_for_payment_id, becoming aRequestForPaymentobject with stateREQUESTED. The object is persisted on RippleNet.The sender creates a payment:
The sender initiates a payment by sending a Create Quote Collection request (which is technically separate from the Request for Payment process).
The receiver and sender respond with their quotes.
The sender sends an Accept Quote request and creates a payment object with a
payment_id.
The sender accepts the Request for Payment by sending an Accept Request For Payment request with the
request_for_payment_idin the path, and the associatedpayment_idin the request body (and any necessaryuser_info):POST {base_url}/v4/request_for_payment/{request_for_payment_id}/acceptThe state of the
RequestForPaymentobject changes toACCEPTED(which is final).The receiver and intermediary Lock Payment.
The sender executes the payment with Settle Payment.