Create Payment

This page provides everything you need to start accepting cryptocurrency payments online seamlessly. With our eCommerce Payments API, you can integrate crypto payment functionality directly into your

In this section, we’ll guide you through:

  • Setting up a new payment transaction

  • Customizing payment details such as amount, currency, and callback URLs

  • Monitoring and updating the status of payments in real time

Whether you’re building a single-page checkout or integrating crypto payments into an existing cart, WCT Pay offers the flexibility and security needed for a reliable eCommerce solution. Let’s get started with creating your first eCommerce payment!Create a Point of Sale Payment

Create an Ecommerce Payment

POST payment/post

Request Body

Name
Type
Description

asset*

String

The asset you would like to settle in your account

asset_network

String

your customer to pay in (Required when the asset is Tether)

requested_asset

String

The asset you would like your customer to pay in

requested_asset_network

String

The network of requested asset you would like your customer to pay in (Required when the requested_asset is Tether)

amount*

String

Amount you would like to receive in the settlement asset

cart_items*

Object

item_name,item_desc,item_quantity,unit_price (DVD1,Movie Name,1,80)

email*

String

Email of customer who will be doing the payment

description*

String

Description of Payment

reference*

String

Your payment reference

postback_url

String

After postback please return a response JSON

{ status: “ok” }.

We will try 10 attempts until response received

redirect_url

String

URL user will be redirected to after complete or cancelled payment

exp

String

Hours until payment expired (1 = 1 hour)

personal_fname

String

Customer Firstname

personal_lname

String

Customer Lastname

personal_address

String

Street Address & Number

personal_city

String

Customer City

personal_state

String

Customer State

personal_country

String

Country, ISO 3166 2 digit code

personal_postcode

String

Postcode / ZIP code

personal_mobile

String

Customer's Mobile Number (incl. country code)

e.g. +614123123123

personal_dob

String

Customers Date of Birth

YYYY/MM/DD

key*

String

Merchant's

Terminal API ID

hash*

String

MD5 Hash

key+asset+amount+api_secret

language

String

Payment Page and Customer Communication language. ISO-639-1 2 character. Default 'en'.

show_payment_html

String

Redirect to payment detail (true,false). Default

false

{
  "status": "nok",
  "message": "Create Payment Failed!",
  "error": "Asset is required, Amount is required",
  "validated": false
}

Examples

Create a Payment & Custom Deliver

This is used when you would like to handle how the payment is delivered to your user.

The default response (show_payment_html=false or null) returns a JSON response with URLs that you can present to your customer any way you wish. QR code, SMS, email, or a payment button are common examples. If your account supports mobile payments you can present the mobile_check_url which will attempt to launch any installed mobile app for payment, otherwise, it will default the user to the payment page.

Create a Payment & Redirect User

To simplify your integration you can post to the endpoint from a form and with show_payment_html=true **** we will generate the payment and display the payment page on the fly.

Last updated