Skip to main content

Documentation

Group Payment Message Sequences

Message sequences for multiple payments in a single transaction.

A group payment consolidates multiple payments into one client transaction. Rapyd processes the individual customer payments in parallel.

A client creates a group payment for two customers paying with cards and both payments succeed.

Group Payment Creation

  1. Customer 1 submits payment information to the client.

  2. Customer 2 submits payment information to the client.

  3. The client sends a Create Group Payment request to Rapyd.

  4. Rapyd sends a response to the client. The status of the payment is set to ACT and the status of the group payment is set to active.

  5. Rapyd sends Payment Succeeded Webhook to the client for customer 1.

  6. Rapyd sends Payment Succeeded Webhook to the client for customer 2.

Group Payment Processing

  1. Rapyd requests a payment from the card network for customer 1.

  2. Rapyd requests a payment from the card network for customer 2.

  3. The card network approves the payment for customer 1 and transfers the funds to Rapyd.

  4. Rapyd credits the client wallet with payment for customer 1 and sends Payment Completed Webhook to the client. The status of the payment is set to CLO.

  5. The card network approves the payment for customer 2 and transfers the funds to Rapyd.

  6. Rapyd credits the client wallet with payment for customer 2 and sends Payment Completed Webhook to the client. The status of the payment is set to CLO.

  7. When all payments have been processed, Rapyd sends Group Payment Completed Webhook to the client. The status of the group payment is set to closed.

A client creates a group payment for two customers paying with cards. The first customer's payment succeeds. The second customer's payment fails, and is re-sent successfully.

Group Payment Creation

  1. Customer 1 submits payment information to the client.

  2. Customer 2 submits payment information to the client.

  3. The client sends a Create Group Payment request to Rapyd.

  4. Rapyd sends a response to the client. The status of the payment is set to ACT and the status of the group payment is set to active.

  5. Rapyd sends Payment Succeeded Webhook to the client for customer 1.

  6. Rapyd sends Payment Succeeded Webhook to the client for customer 2.

Group Payment Processing - Partial Failure

  1. Rapyd requests a payment from the card network for customer 1.

  2. Rapyd requests a payment from the card network for customer 2.

  3. The card network approves the payment for customer 1 and transfers the funds to Rapyd.

  4. Rapyd credits the client wallet with payment for customer 1 and sends Payment Completed Webhook to the client. The status of the payment is set to CLO.

  5. The card network rejects the payment for customer 2.

  6. Rapyd sends Payment Failed Webhook to the client for customer 2. The status of the payment is set to ERR.

Group Payment Processing - Failed Payment Re-sent

  1. The client informs customer 2 that the payment failed.

  2. Customer 2 submits new payment information to the client.

  3. The client sends a Create Payment request to Rapyd for customer 2. The client sets group_payment to the ID of the Create Group Payment response.

  4. Rapyd sends a response to the client. The status of the payment is set to ACT.

  5. Rapyd sends Payment Succeeded Webhook to the client for customer 2.

  6. Rapyd requests a payment from the card network for customer 2.

  7. The card network approves the payment for customer 2 and transfers the funds to Rapyd.

  8. Rapyd credits the client wallet with payment for customer 2 and sends Payment Completed Webhook to the client. The status of the payment is set to CLO.

  9. Rapyd sends Group Payment Completed Webhook to the client. The status of the group payment is set to closed.