You will need to pass the results from Stripe to RCM to
record any payments and add any collected card details for use in RCM.
Please note that some data (e.g. card details) may not be returned by Stripe's client side library and you will need to make additional Stripe API calls to get this information.
To save a Stripe payment call the “confirmpayment” RCM API method and pass in the following Stripe 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 Stripe customer ID (e.g., “cus_Lf4I7wU2EHOb6T”). |
dpstxnref | The Stripe payment intent ID (e.g., “pi_3KaZ76L5a7hxLgJE0BauiXdJ”). |
cardholder | The cardholder’s name, you may need to collect this manually as Stripe’s payment elements don’t collect the cardholder’s name. |
paysource | Optional Payment Source eq. 'Payment from Web API3.x'. |
cardnumber | The last 4 digits of the card as returned by Stripe. |
cardexpiry | The card expiry returned by Stripe 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/2022","supplierid": 5,"transactid": "cus_LcPyl54OnW0Csi","dpstxnref": "pi_3KvB8PPwJpgLULcu1zPQKhpp","cardnumber": "9969","cardexpiry": "01/25","cardholder": "John Doe","transtype": "Payment"}
Parameter | Value |
reservationref | Booking reference code returned from method booking |
paytype | Payment type, like visa or mastercard |
supplierid | |
paysource | Optional Payment Source eq. 'Payment from Web API3.x' |
rebillingtoken | The Stripe customer ID (e.g., “cus_Lf4I7wU2EHOb6T”). |
cardnumber | The last 4 digits of the card as returned by Stripe. |
cardexpiry | The card expiry returned by Stripe in the format of “MM/YY”. |
cardholder | The cardholder’s name, you may need to collect this manually as Stripe’s payment elements don’t collect the cardholder’s name. |
{"method": "rebillingtoken","reservationref": "43F355C1223","paytype": "Credit Card","supplierid": 5,"paysource": "Website","rebillingtoken": "cus_LcPyl54OnW0Csi","cardnumber": "9969","cardexpiry": "01/25","cardholder": "John Doe"}