To get started, add the following 'sample code' to your checkout page. For details of each parameter, look at the 'button parameters' table after the sample code.
The signature is used to protect the data exchanged between your server with PayBolt server. The signature should be generated using the following two steps:
Step 1
Concatenate the relevant parameters into a single string (Eg. signature for form post):
· Secret Key (Found in your merchant setting page)
· The form post 'merchant_id' value
· The form post 'action' value (Eg. 'capture')
· The form post 'merchant_reference_id' value
· The form post 'amount' value (Eg. '2.00')
· The form post 'currency' value (Eg. 'USD')
Step 2
Hash the concatenated string using SHA1 algorithm.
Please refer to Button Parameters for more parameter information and usage. Note! The "signature" and "signature_algorithm" parameters are not required in this method.
The action of the current payment. Currently, PayBolt supports only 'capture'
Name
Description
merchant_id
Merchant ID provided by PayBolt.
merchant_reference_id
This ID can be served as the merchant reference ID. This ID should be unique in the merchant system.
currency
Currently, PayBolt supports only 'USD'. Default: 'USD'
amount
The total amount to be charged to the customer. It should be the sum of the subtotal for each item, delivery charge, discounted amount and tax amount.
success_url
URL to go when users have completed the payment in PayBolt page.
cancel_url
URL to go when users click 'Cancel' in PayBolt page.
skip_success_page (optional)
Use
'1' - Yes.
'0' - No (default)
If 'skip_success_page' flag is set to '1', customer will not see the PayBolt success page after payment is made successfully. The customer will instead be redirected back to the provided 'success_url'.
Transaction response and payment details will be added to the 'success_url' and the details are:
'merchant_id'
'merchant_reference_id'
'paybolt_reference_id'
'response_code'
'currency'
'amount'
'signature'
'signature_algorithm'
The description for each field is exactly the same as the PTR fields. Please refer to the ‘PTR Parameters' section for more information.
PayBolt Transaction Response Url. When a payment is successfully paid, PayBolt Server will post a PTR to this URL with the transaction details before the customer is redirected to the ' PayBolt Success Page'.
signature
An unique signature generated using the 'Secret Key' found in your merchant setting page.
Concatenating the following fields:
Note! Secret Key (Found in your merchant setting page)
the form post 'merchant_id' value
the form post 'action' value (Eg. 'capture')
the form post 'merchant_reference_id' value
the form post 'amount' value (Eg. '2.00')
the form post 'currency' value (Eg. 'USD')
For more information on the signature generation, please refer to the 'Signature Generation' section.
signature_algorithm
Fixed. Please use 'sha1'.
Name
Type
Description
status
int
1 - Success
-1 - Failed
redirect_url
string
The url to be used to redirect the customer to immediately.
message
string
Contains success message or fail message
Name
Type
Description
merchant_id
string(70)
Your account email address.
merchant_reference_id
string(30)
Your provided reference Id (the 'merchant_reference_id' field)
paybolt_reference_id
string(30)
The PayBolt reference Id
response_code
int(1)
- Completed
- Declined
Name
Type
Description
- Error
- Refunded
currency
string(3)
Currency used in the transaction
amount
decimal(11,2)
Amount paid by the customer using credit card.
signature
string
An unique signature generated using the 'Secret Key' found in your merchant setting page.
Generated by concatenating :
Note! Secret Key (Found in your merchant setting page)
the PTR parameter 'merchant_id' value
the PTR parameter 'merchant_reference_id' value
the PTR parameter 'paybolt_reference_id' value
the PTR parameter 'response_code' value (Eg. '1')
the PTR parameter 'currency' value (Eg. 'USD')
the PTR parameter 'amount' value (Eg. '2.00')
For more information on the signature generation, please refer to the 'Signature Generation' section.