Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 2.94 KB

README.md

File metadata and controls

58 lines (41 loc) · 2.94 KB

Solana-Payment-Links

Process Solana Token payments and setup Solana webhook for payment notifications.

HTML payment form to embed into website, payment QRcode, or payment link.

Net-assembly gateway is meant to provide a variety of payment features to the community. With this platform, you can easily integrate Solana SPL-Token based payment forms in your website, application, or point of sale. Payments can be requested with a payment url, or a form, or a QRcode. This gateway will then use callbacks (HTTP webhook) in order to notify you about payments. P-Links can also connect with IFTTT, Make, or Zapier using our RSS p-link This allows a different method for implementing Solana SPL-Token based payments, with simple links, and HTTP webhook, that is very easy to integrate into PHP, ASP, JAVA, Ruby projects.

Demo

You can view an example of a payment page here :

https://p-link.io/Pay/FPnfgC9ppJP9qbDyL2E5ZfDuvHuabec2XFfKufawP6p4/1/46/USD/Pay%20now/PARAM

How to install on any website

You first need to register your webhook on the Neta Token homepage : Payment links | P-Link.io

You need to provide your wallet, the currency you want to provide amount in (EUR / USD) and the mint of the SPL-Tokens you want to accept. When the form is submitted, you will get a webhook secret password you need to save in order to secure HTTP webhook notifications, and a webhook ID.

You will get also :

  • HTML code of a payment form, to embed in your website
  • A link that leads to a payment form, you can send by email
  • A QRcode that your clients can scan to pay you

You can receive payment notification by email and on an notification URL (webhook). You can customize the amount, the title of the order, and provide an optionnal parameter that will be transmitted with the webhook and email notifications, just replace the parameter 'PARAM'. If you implemented our payment gateway and would like to be featured in the partners list, please contact us.

The payment URL is quite simple, and must respect the format :

https://p-link.io/Pay/[walletID]/[requestedAmount]/[webHookID]/[EUR or USD]/[Optionnal title for the order]/[OptionnalParameter]/

Payment notification webhook

If you specified a webhook, a HTTP request will be made on payment on the URL you provided. The data will be sent as a JSON encoded BODY of an HTTP request with the parameters :

myParam : the parameter you provided in the payment link or form
sourcePayment : the wallet address of the payer
paidAmountInToken : the amount paid in token (bigint)
paidAmountInTokenUi : the amount paid in token user readable
tokenUsedForPayment : the mint address of token used for payment
EUR_Amount : the amount paid converted in euros
USD_Amount : the amount paid converted in USD
trx : the transaction ID
secret : your secret key

Net-assembly Token

More info on Net-assembly Token can be found here : Net-Assembly Token payment gateway