4.1. Converge Payment API

circle-info

Our converge payment supports all scenarios ​except for​ WeChat Mini Program payment. For Mini Program payment, please ​refer to section 4.2 Wechat Payment APIs

1. Overview

Use this API to get the cashier page address. After getting the cashier page address, you can redirect the user to the cashier page to make a payment.

2. Request Info

  • Method: post

  • Path

For Website: https://prod-openapi.newpay.la/api/open/converge/pay/v1/createOrder
For Mobile: https://prod-openapi.newpay.la/api/open/converge/pay/v1/m/createOrder

2.1 Request Header

Key
Value

Content-Type

application/json

version

1.0

2.2 Request Data

Name
Description
Type
Required

appId

Unique identifier assigned to a third-party application platform

string

true

merchantId

Unique identifier assigned to a third-party merchant

string

true

timestamp

Request timestamp

timestamp

true

sign

string

true

payMethod

Payment method: 1.NewPay; 3.VISA; 5 WeChat; 6 Alipay

int

true

currency

Payment currency, LAK/USD

string

true

orderAmt

Payment amount

string

true

orderNo

Order number,The unique number assigned by a merchant to identify a payment request.

string

true

callBackUrl

Payment result notification URL

string

true

successPageUrl

Transfer address of successful payment

string

true

failurePageUrl

Payment failed to jump address

string

true

cancelPageUrl

Cancel the payment redirect address

string

true

subject

Commodity title, if alipay, it is required.

string

false

extra

Third party order supplementary fields, if alipay, the alphabet should include ANDROID or IOS”

string

false

2.3 Response Data

Name
Description
Type

success

Success flag: true/false

boolean

message

Response message

string

code

string

timestamp

Response timestamp

long

data

Result

object

> appId

Unique identifier assigned to a third-party application platform

string

> sign

Data signature

string

> tranAbbr

Transaction Type

string

> tranNo

Transaction Number

string

> orderAmt

Payment amount

string

> payUrl

Payment address

string

> orderNo

Order number

string

> newpayOrderNo

NewPay order number

string

3. Example Data

3.1 Request

3.2 Response

4. Wake Up NewPay App

Invoke NewPay payment through AppLink open, which is the payUrl field in the order response data

4.1 iOS

objective-c eg:

swift eg:

4.2 Android

Java eg:

Kotlin eg:

Last updated