With JostPay payment interface, you can integrate cryptocurrency payment gateway on your website with ease. With this option, you will be able to receive bitcoin, litecoin and bitcoin cash seamlessly with just a single line of code added to your website. The most interesting aspect of this payment gateway is that; your clients do not have to leave your website. It is just the perfect solution you have been waiting for. Read the 'How it Works' section below to learn more.
JostPay Popup SCI requires only Jquery Library and a reference to JostPay Payment Interface Jquery Library. The payment function in the library can be called through any click on an html element. The element with the click must have the class 'jppay'.
You must also pass some parameters to the payment function using the data attribute. Check the the parameter table for all required data parameters.
JostPay Payment Interface sends notification in form of email and POST parameters to your provided callback url. Callback response are sent at three (3) separate instances: when an address is generated or an error in generating address, when a payment is received into the address (but yet to be confirmed) and when amount received is confirmed. The callback data attribute must be provided but can be left blank if you do not want a callback. An email is only sent when payment is received (but yet to be confirmed) into a generated account. Check the callbacks section for details on the callback POST fields.
Once a payment is received and confirmed into an address, it is automatically forwarded to your JostPay primary address after JostPay commission and miner charges have been deducted. Check the charges details for more details on our deductions.
A full example of the script and callback response are shown in sample script section.
|firstname.lastname@example.org||This is your registered Jostpay email address|
|data-currency||Bitcoin||Other options are Bitcoin Cash and Litecoin|
|data-amount||0.05||Amount to receive.
For Bitcoin, amount in BTC (minimum of 0.001 BTC).
For Bitcoin Cash, amount in BCH (minimum of 0.01 BCH).
For Litecoin, amount in LTC (minimum of 0.2 LTC)
|data-reference||referenceno||Unique reference number.|
|data-callback||https://example.com/mycallback||Full callback url. Leave as blank if you do not want a callback|
|status||0||0 - there is an error in generating address.
1 - an address is successfully generated.
2 - an amount is received in address but not confirmed.
3 - an amount is received and confirmed in address.
4 - an amount not up to expected amount is received
|reference||myreferenceno||The unique reference number of the request that you sent|
|message||funds received but not confirmed||A details to further explain response. For status 1, the message field will contain the address generated|
|Bitcoin||1% of data-amount + 0.000030 BTC|
|Bitcoin Cash||1% of data-amount + 0.000680 BCH|
|Litecoin||1% of data-amount + 0.003600 LTC|