SDK Instruction
We support different languages of SDK, including Golang、PHP、Java
Get the SDK
GOLANG-SDK: go get github.com/ReelPayment/sdk-go
PHP-SDK: php composer.phar require reelpay/sdk-php
JAVA-SDK: https://github.com/ReelPayment/sdk-javaGolang Example:
``Example 1 Native checkout
import (
"github.com/ReelPayment/sdk-go"
)
func main() {
transactions := reelpay.Transactions{AppID: "b66g4ypvrbzr7767", AppKey: "HcqmXmq7F4Y4UveaL7wcaYXSe3I8qS2X"}
res := transactions.Pay(&reelpay.PayRequest{
OutTradeNo: "QYXwrw25PzFZPYw83XWC5ManQWH3SZaW",
CurrencyID: "bVmDPPs3Cyt1ZGeZVq6orZNWnfYhiE5H",
FiatName: "USD",
FiatAmount: "0.0001",
})
fmt.Println(res)
}PHP Example:
JAVA Example:
Call Method
Method
Description
The list of tokens currently supported
Get the exchange rate and amount to pay
Create a transaction and return transaction information
Check transaction status
Close Order
Request Refund
Hosted Checkout
Last updated