HSBC Webpay Card Processing
  • 19 Feb 2025
  • 2 Minutes to read
  • Dark
    Light

HSBC Webpay Card Processing

  • Dark
    Light

Article summary

Supported Transaction Types

  • Authorisation AUTH

  • Capture CAPT

  • Purchase PURC

  • Refund PARTIALREFUND

  • Void GENERALVOID

  • Payouts ORIGINALCREDIT

  • Recurring AUTH / PURC

Integrations Supported

Deposit - Authorisation / Purchase

  • Hosted Payment Page

  • Direct Connect ( server-to-server)

Capture, Void, Refunds, Payouts, Recurring

  • Hosted Payment Page

  • Direct Connect ( server-to-server)

Currencies & Countries Supported

Title

Description

Currencies Supported

EUR

Additional attributes to process Deposits

You must include the following JSON Attributes to the payload. These attributes inform us to proceed with the redirection to Webpay to finalize the payment process.

if you are using our Hosted Payment Page

Description

Hosted Payment Page

Transaction Type

"TransactionType": "AUTH" or "PURC"

Force Transaction Routing

“Routing”:{

"ForceBank": "WEBPAY”

Client Details

"Client": {

"Email": "test@mail.com",

"FirstName": "Apco",

"LastName": "Test",

"Street": "High Street",

"City": "Virtu",

"ZipCode": "BCCG1234",

"Country": "MLT",

"MobileNo": "00441234567",

"IPAddress": "1.1.1.1"  

}

Test Indicator

"isTest”: true

Sample requests using our Hosted Payment Page can be viewed here.

 {
  "TransactionType": "AUTH",
  "Amount": 10.00,
  "Currency": "EUR",
  "OrderReference": "34323",
  "RedirectionURL": "https://www.yourURLhere.com/Redirect",
  "FailRedirectionURL": "https://yourURLhere.com/FailRedirect/",
  "UniqueReference": "4b8da4f0-d3b4-44ae-8019-8c66905ffad7",
  "CallBackURL": "https://www.yourURLhere.com/Listener",
  "Routing": {
    "ForceBank": "WEBPAY"
  },
  "Client": {
    "Email": "test@mail.com",
    "FirstName": "Apco",
    "LastName": "Test",
    "Street": "High Street",
    "City": "MagicCity",
    "ZipCode": "BCCG1234",
    "Country": "MLT",
    "MobileNo": "00441234567",
    "IPAddress": "1.1.1.1"
  },
  "IsTest": true
}

If you are using our direct connect solution (server-to-server)

Description

Direct Connect

Transaction Type

"TransactionType": "AUTH" or "PURC"

Force Transaction Routing

“Routing”:{

"ForceBank": "WEBPAY”

Client Details

"Client": {

"Email": "test@mail.com",

"FirstName": "Apco",

"LastName": "Test",

"Street": "High Street",

"City": "Virtu",

"ZipCode": "BCCG1234",

"Country": "MLT",

"MobileNo": "00441234567",

"IPAddress": "1.1.1.1"  

}

Card Details

"PaymentCredentials": {

"PaymentSource": "Card",

"CardType": "MASTERCARD",

"CardNumber": "5351772561457936",

"CVV2": "123",

"ExpMonth": "02",

"ExpYear": "2027",

"CardHolderName": "Joe Smith"

},

Browser details

"BrowserDetails": {

"UserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",

"JavaEnabled": true,

"ScreenColorDepth": "1",

"ScreenWidth": "1080",

"ScreenHeight": "840",

"TimeZone": "2",

"AcceptHeader": "application/json",

"BrowserLanguage": "en"

}

Test Indicator

"isTest”: true

Sample requests using Direct Connect can be viewed here.

 {
  "TransactionType": "PURC",
  "Amount": 10.23,
  "Currency": "EUR",
  "IsTest": true,
  "OrderReference": "123",
  "RedirectionURL": "https://www.yourURLhere.com/Redirect/",
  "FailRedirectionURL": "https://yourURLhere.com/FailRedirect/",
  "UniqueReference": "4b8da4f0-d3b4-44ae-8019-8c66905ffad7",
  "CallBackURL": "https://www.yourURLhere.com/Listener",
  "PaymentCredentials": {
    "PaymentSource": "Card",
    "CardType": "VISA",
    "CardNumber": "4000000000001018",
    "CardHolderName": "Frictionless Processed",
    "ExpMonth": "12",
    "ExpYear": "2030",
    "CvV2": "666"
  },
  "Client": {
    "Email": "test@mail.com",
    "FirstName": "Apco",
    "LastName": "Test",
    "Street": "High Street",
    "City": "MagicCity",
    "ZipCode": "BCCG1234",
    "Country": "MLT",
    "MobileNo": "00441234567",
    "IPAddress": "1.1.1.1"
  },
   "BrowserDetails": {
    "UserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
    "JavaEnabled": true,
    "ScreenColorDepth": "1",
    "ScreenWidth": "1080",
    "ScreenHeight": "840",
    "TimeZone": "2",
    "AcceptHeader": "application/json",
    "BrowserLanguage": "en"
  },
  "Routing": {
    "ForceBank": "WEBPAY"
  }
}

Requesting a Capture, Refund or Void

If you wish to Capture a transaction of type Authorisation or a Refund or Void below are the mandatory fields.

Description

Direct Connect

Transaction Type

"TransactionType": "CAPT" or "GENERALVOID" or "PARTIALREFUND"

Transaction Reference

"PspID": "342342”

Sample request for processing a capture request.

{
"TransactionType": "CAPT",
"Amount": 10.00,
"CallBackURL": "https://www.yourURLhere.com/Listener",
"IsTest": true,
"UniqueReference": "6514441d-8abe-4d7b-9e0c-3aa386333b34",
"PspID":"839791" 
}

Requesting a Recurring transaction

The mandatory fields are required to process a recurring transaction using our direct connect integration. Note that we use a transaction reference as payment credentials since a recurring transaction is linked to an original deposit.

Description

Direct Connect

Transaction Type

"TransactionType": "AUTH" or "PURC"

Payment Credentials

"PaymentCredentials": {

"PaymentSource": "TransactionReference"

}

Client

"Client": {

"Email": "test@mail.com",

"FirstName": "Apco",

"LastName": "Test",

"Street": "High Street",

"City": "Virtu",

"ZipCode": "BCCG1234",

"Country": "MLT",

"MobileNo": "00441234567",

"IPAddress": "1.1.1.1"  

}

Transaction Reference

"PspID": "342342”

Test Indicator

"isTest”: true

Sample Request of a Recurring transaction

 {
  "TransactionType": "PURC",
  "Currency": "EUR",
  "Amount": 10.12,
  "OrderReference": "Order2323",
  "RedirectionURL": "https://www.yourURLhere.com/Redirect",
  "CallBackURL": "https://www.yourURLhere.com/Listener",
  "FailRedirectionURL": "https://yourURLhere.com/FailRedirect/"
  "UniqueReference": "4b8da4f0-d3b4-44ae-8019-8c66905ffad7"
  "Language": "en",
  "IsTest": true,
  "PspId": "840510",
  "PaymentCredentials": {
    "PaymentSource": "TransactionReference"
  },
  "Client": {
    "Email": "test@mail.com",
    "FirstName": "Apco",
    "LastName": "Test",
    "Street": "High Street",
    "City": "MagicCity",
    "ZipCode": "BCCG1234",
    "Country": "MLT",
    "MobileNo": "00441234567",
    "IPAddress": "1.1.1.1"
  }
}

Test Credentials

Test Card details below. You must use a future expiry date and use “Frictionless Processed” as the cardholder name. For more test information on different card use cases here.

Card Details

4200000000000000

4711100000000000

5555555555554444



Was this article helpful?