You will need to pass the results from Paystack to RCM to
record any payments and add any collected card details for use in RCM.
Please note that you may be required to call Paystack's Verify Transaction API endpoint to retrieve the full transaction data.
To save a Paystack payment, call the “confirmpayment” RCM API method and pass in the following Paystack details:
Parameter | Value |
reservationref | Booking reference code returned from method booking. |
amount | Payment amount. |
success | Indicate if payment was successful. |
paytype | Payment type, like Visa or Mastercard. |
paydate | Payment date. |
supplierid | |
transactid | The Paystack customer ID and authorization code separated by a pipe symbol. For example: "CUS_woiqpaa7hw2g7ky|AUTH_rm5go7krzj". |
dpstxnref | The Paystack transaction ID. For example: "5064387422". |
cardholder | The cardholder’s name. |
paysource | Optional Payment Source. E.g. 'Payment from website'. |
cardnumber | The last 4 digits of the card as returned by Paystack. |
cardexpiry | The card expiry returned by Paystack in the format of “MM/YY”. |
transtype | The transaction type, in this case “Payment”. |
merchfeeid | Optional Merchant Fee ID corresponding to a Merchant Fee ID setup within the system. |
payscenario | Payment scenario when calling this method, possible values are: 1= at time of original booking (default), 2=convertquote, 3=prehire e.g. editbooking. |
emailoption | Email option, 0=never send email, 1=default behaviour, 2=always send email. |
{"method": "confirmpayment","reservationref": "43F355C1223","amount": 500,"success": true,"paytype": "Credit Card","paydate": "01/01/2026","supplierid": 16, // Your system's supplier ID for Paystack"transactid": "CUS_woiqpaa7hw2g7ky|AUTH_rm5go7krzj", // Your transaction's customer ID and authorization code"dpstxnref": "5064387422", // Your transaction's ID"cardnumber": "9969","cardexpiry": "01/26","cardholder": "John Doe","transtype": "Payment"}
Parameter | Value |
reservationref | Booking reference code returned from method booking. |
amount | Refund amount as a negative value. E.g. "-1". |
success | Indicate if the refund was successful. |
paytype | Payment type, like Visa or Mastercard. |
paydate | Payment date. |
supplierid | Please email support@rentalcarmanager.com to confirm what your supplierid is. |
dpstxnref | The Paystack transaction ID. For example: "5064387422". |
paysource | Optional Payment Source. E.g. 'Refund from website'. |
transtype | The transaction type, in this case “Refund”. |
merchfeeid | Optional Merchant Fee ID corresponding to a Merchant Fee ID setup within the system. |
payscenario | Payment scenario when calling this method, possible values are: 1= at time of original booking (default), 2=convertquote, 3=prehire e.g. editbooking. |
{"method": "confirmpayment","reservationref": "43F355C1223","amount": -1,"success": true,"paytype": "Credit Card","paydate": "01/01/2026","supplierid": 16, // Your system's supplier ID for Paystack"dpstxnref": "5064387422", // Your transaction's ID"transtype": "Refund"}