Recredit
Introduction#
This document describes the integration process for the LPS Recredits system. Recredits include the processing of voids (before settlement), refunds (after settlement) and OCT’s.
Voids
Merchants can post a request to the LPS gateway to be void/reverse an authorisation. When a request is submitted, the gateway performs a series of checks and then directly forwards a void request to the bank for transaction reversal. A response is sent back to the merchant in real time to acknowledge the request and confirm if it’s been accepted or declined. The status of the request can also be viewed by logging onto the merchants reporting system on the LPS website
Refunds
Merchants can post a request to the LPS gateway to refund a settled transaction. When a request is submitted, the gateway performs a series of checks and then responds back to the merchant. Refunds are checked by LPS Admin staff before they are sent to the bank. Depending on the banks rules, this API can be used to perform partial refunds as well. The status of the request can be viewed by logging onto the merchants reporting system on the LPS website.
OCT’s
Merchants can post a request to the LPS gateway to make a payment to a customer’s card number via the recredits system. When a request is submitted, the gateway performs a series of checks and responds back to the merchant. The submitted transactions are checked by LPS Admin staff before they are sent to the bank. The status of request can be viewed by logging onto the merchants reporting system on the LPS website.
REALTIME PROCESSING
LPS Recredits API offers the ability to perform real time reversals / refunds i.e. as soon as the authorisation has been performed. To take advantage of this, the request needsto carry the post field “realtime” parameter with value set as Y. Do note that as a general rule, this is best to set only for processing voids/refunds of any auth’s done in the last one hour. If attempting to void or refunds of transactions whose auth time is older than an hour, its best to ignore this flag.
INFORMATION TO BE SUPPLIED BY THE MERCHANT#
The password used for authentication on the return post from the LPS server to the merchant server.
Information from Merchant#
Information to be supplied by the merchant#
The password used for authentication on the return post from the LPS server to the merchant server.
Posting Parameters#
SCHEDULE A1: POSTING PARAMETERS#
| Form Field | Description | Details |
|---|---|---|
| merchant_refund_id# | LPS Provided value. It will be used to process refunds on all sites in your group, so if you have multiple authorisation accounts (merchant_user_id’s) with LPS, then this single merchant_refund_id will be used to process refunds for the entire group | Mandatory |
| merchant_pwd# | Password used for authenticating the refund account | Mandatory |
| refund_type# | This field indicates the type of refund. It should contain one of the following depending on the request: 1 – Standard Refund 2 – Fraud Refund 3 – Standard Cancellation 4 – Fraud Cancellation 5 - OCT 6 – Bacs 7- Faster Payments 8 – Wires 9 - BacsPay (bureau processing) | Mandatory |
| lps_transaction_id# | Original LPS transaction id of the authorisation transaction you wish to refund/void. | Conditional (Only for refund_type 1 to 4) |
| merchant_ref_number# | Merchant Reference number generated and sent to LPS by merchant with the original authorisation. NB: This should match only for refunds/voids. | Mandatory |
| firstname# | Customer First Name | Conditional (Only for refund_type 5,6,7,8,9) |
| lastname# | Customer Last Name | Conditional (Only for refund_type 5,6,7,8,9) |
| phone# | Customer Phone | Optional (Only for refund_type 5,6,7,8,9) |
| email# | Customer Email | Optional (Only for refund_type 5,6,7,8,9) |
| bill_firstname# | Billing Customer First Name | Conditional (Only for refund_type 5,6) |
| bill_lastname# | Billing Customer Last Name | Conditional (Only for refund_type 5,6) |
| bill_address1# | Billing Customer first line address | Conditional (Only for refund_type 5,6,8) |
| bill_address2# | Billing Customer second line address | Optional (Only for refund_type 5,6,8) |
| bill_city# | Billing Customer city | Conditional (Only for refund_type 5,6,8) |
| bill_state# | Billing Customer state | Optional (Only for refund_type 5,6,8) |
| bill_zip# | Billing Customer zip | Conditional (Only for refund_type 5,6,8) |
| bill_country# | Billing customer country in ISO 2-digit alpha format | Conditional (Only for refund_type 5,6,8) |
| pan# | Card Number | Conditional (Only for refund_type 5,6) |
| pan_expmo# | Card expiry month in format mm | Conditional (Only for refund_type 5,6) |
| pan_expyr# | Card expiry year in format yyyy | Conditional (Only for refund_type 5,6) |
| pan_startmo# | Card start month in format mm | Optional (Only for refund_type 5,6) |
| pan_startyr# | Card start year in format yyyy | Optional (Only for refund_type 5,6) |
| pan_type# | Card type should contain one of the following values: VISA MAST SWITCH SOLO DELTA AMEX MAESTRO (Case sensitive, upper case only) | Conditional (Only for refund_type 5,6) |
| pan_issue# | Card issue number | Optional (Only for refund_type 5,6) |
| refund_currency# | Transaction Currency in ISO 3- digit alpha format | Conditional (Only for refund_type 5,6,7,8,9) |
| refund_amount# | Transaction amount with two decimal places only | Conditional (Only for refund_type 5,6,7,8,9) |
| refund_comment# | The reason or any note which needs to be added to the recredit request. NB: mandatory in case of fraud refunds. It’s a free text and ideally should indicate why the transaction is deemed fraud. | Optional*** ***Mandatory for fraud refunds. |
| scsscheck# | Flag to indicate if SCSS is required. Values: Y, N, D Y: Yes; N: No; [default if not sent] D: Done, token posted with the request. | Conditional*** (Only for refund_type 5,6. Only if SCSS options are required). ***If set to Y or N, then crdStr_token field will be ignored even if sent. |
| crdstrg_token# | Unique card details identifier from LPS SCSS system | Conditional*** (Only for refund_type 5,6. Only if scsscheck is set to D) ***If this field is not sent and scsscheck is set to D, a 9010 error code will occur. |
| cust_bankname# | Customer’s Bank Name | Conditional (Only for refund_type 8) |
| cust_accountname# | Customer’s Account Name | Conditional (Only for refund_type 7,8,9) |
| cust_sortcode# | Customer’s Sort Code | Conditional (Only for refund_type 7,9) |
| cust_accountnumber# | Customer’s Account Number | Conditional** (Only for refund_type 7,8,9) **Ignored, if cust_accountiban posted for refund_type 8 |
| cust_accountiban# | Customer’s Account IBAN | Conditional (Only for refund_type 8) |
| cust_bankswiftcode# | Customer’s Bank Swift Code | Conditional (Only for refund_type 8) |
| cust_bankcode# | Customer’s Bank Code | Optional (Only for refund_type 8) |
| cust_bankaddress1# | Customer’s Bank Address line1 | Conditional (Only for refund_type 8) |
| cust_bankaddress2# | Customer’s Bank Address line2 | Optional (Only for refund_type 8) |
| cust_bankcity# | Customer’s Bank city | Conditional (Only for refund_type 8) |
| cust_bankstate# | Customer’s Bank state | Optional (Only for refund_type 8) |
| cust_bankzip# | Customer’s Bank zipcode | Conditional (Only for refund_type 8) |
| cust_bankcountry# | Customer’s Bank country in ISO 2-digit alpha format | Conditional (Only for refund_type 8) |
| cust_intermediarybankname# | Customer’s Intermediary Bank Name | Optional (Only for refund_type 8) |
| cust_intermediaryaccountiban# | Customer’s Intermediary Account IBAN | Optional (Only for refund_type 8) |
| cust_intermediarybankswiftcode# | Customer’s Intermediary Bank Swift Code | Optional (Only for refund_type 8) |
| cust_intermediarybankaddress1# | Customer’s Intermediary Bank Address line1 | Optional (Only for refund_type 8) |
| cust_intermediarybankaddress2# | Customer’s Intermediary Bank Address line2 | Optional (Only for refund_type 8) |
| cust_intermediarybankcity# | Customer’s Intermediary Bank city | Optional (Only for refund_type 8) |
| cust_intermediarybankstate# | Customer’s Intermediary Bank state | Optional (Only for refund_type 8) |
| cust_intermediarybankzip# | Customer’s Intermediary Bank zipcode | Optional (Only for refund_type 8) |
| cust_intermediarybankcountry# | Customer’s Intermediary Bank country in ISO 2-digit alpha format | Optional (Only for refund_type 8) |
| settle_currency# | Settlement Currency Code in ISO 3-digit alpha format | Conditional (Only for refund_type 8) |
| wire_direction# | The direction of wire transfer currency exchange trade. Values: S; B S: Sell; B: Buy | Conditional (Only for refund_type 8) |
| wire_paymenttype# | Wire payment type. Values: Standard; Express Standard: Normal transfer which can take upto 3 days; Express: Next day transfer*** *** Business working day for both request received and processed | Conditional (Only for refund_type 8) |
| wire_type# | Wire type. Values: 1: Standard Wires. 2: Salary Wires. 3: Invoice Wires. 4: Affiliates Wires. if not posted, default value: 1 | Conditional (Only for refund_type 8) |
| payment_reference# | Payment reference to be shown on customer bank account statement. | Conditional (Only for refund_type 7,8,9) |
| realtime# | Flag to indicate if transaction is to be checked in realtime *** | Conditional (Only for refund type 1, 2, 3, 4) |
*** Please see section above on “REALTIME PROCESSING”
Response Parameters#
SCHEDULE A2: Response Parameters#
| Form Field | Description |
|---|---|
| LPSReply_pwd# | Password provided by merchant to LPS to authenticate return post fields. |
| Request_Id# | Request Id generated for the recredit request. |
| LPS_refund_id# | Refund Id generated for the recredit request. |
| RefundSubmit_status# | The status of the recredit request. See codes below. |
| Bank_status# | The submitted status of payback in LPS. |
Additional Response Parameters#
SCHEDULE A3: Additional Response Parameters#
Depending on the merchant's account setup status, LPS Recredits API gateway can respond additional fields in addition to the fields specified in the "schedule A2" which is the response to confirm the results of the transaction. These fields will NOT be enabled by default and cannot be guaranteed to be returned even if enabled. Depending on the outcome of the transaction and on the gateway on which the merchant is setup, these fields can be returned. LPS will continue to add these additional response fields as required in future releases/upgrades of the gateway. If merchants wish to get these fields returned, they would need to contact LPS to get their accounts configured.
Rules#
To cancel an authorised transaction#
- Submit the correct value in the LPS_transaction_id and merchant_ref_number fields.
- Make sure the transaction is not past the cut-off date for its scheduled payment cycle.
- Set “refund_type” post variable as either 3 or 4.
To refund a settled transaction#
- Submit the correct value in the LPS_transaction_id and merchant_ref_number fields.
- Make sure the transaction is already settled and transaction is not older than 90 days.
- Set “refund_type” post variable as either 1 or 2.
To send a OCT payment#
- Submit the correct value in Merchant_ref_number and billing fields.
- Make sure the transaction value is not more than allowed limit per OCT transaction. Also make sure that the daily limit on that card number hasn’t been exceeded either. Please contact LPS for OCT transaction limits.
- Set “refund_type” post variable as 5.
To send a Bacs payment#
- Submit the correct value in Merchant_ref_number and billing fields.
- Make sure the transaction value is not more than allowed limit per Bacs transaction. Also make sure that the daily limit on that card number hasn’t been exceeded either. Please contact LPS for Bacs transaction limits.
- Set “refund_type” post variable as 6.
To send a Wires payment#
- Submit the correct value in Merchant_ref_number and billing fields.
- Make sure the transaction value is not more than allowed limit per wires transaction. Also make sure that the daily limit on that account hasn’t been exceeded either. Please contact LPS for wires transaction limits.
- Set “refund_type” post variable as 8.
To send a BacsPay payment#
- Submit the correct value in Merchant_ref_number and billing fields.
- Make sure the transaction value is not more than allowed limit per bacspay transaction. Also make sure that the daily limit on that account hasn’t been exceeded either. Please contact LPS for bacs bureau transaction limits.
- Set “refund_type” post variable as 9.
To send a FasterPayment payment#
- Submit the correct value in Merchant_ref_number and billing fields. Make sure payment_reference is set.
- Make sure the transaction value is not more than allowed limit per FP transaction. Also make sure that the daily limit on that account hasn’t been exceeded either. Please contact LPS for FasterPayment transaction limits. - Set “refund_type” post variable as 7.