# 4.2.2 Place Order

## 1. Overview

Process WeChat Pay Mini Program payments through this API.

## 2. Request Info

* Method: post
* Path: <https://prod-openapi.newpay.la/api/open/converge/pay/v2/createOpenMini>

### **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     |
| timestamp   | Request timestamp                                                                                                                                                                                                           | Long   | true     |
| currency    | Payment currency, LAK/USD                                                                                                                                                                                                   | String | true     |
| orderAmt    | Payment amount，USD supports 2 decimal places, while LAK is an integer.                                                                                                                                                      | String | true     |
| merchantId  | Unique identifier assigned to a third-party merchant                                                                                                                                                                        | String | true     |
| orderNo     | Order number,The unique ID assigned by the merchant to identify a payment request.                                                                                                                                          | String | true     |
| subject     | Commodity title                                                                                                                                                                                                             | String | false    |
| callBackUrl | Payment result notification URL                                                                                                                                                                                             | String | true     |
| envVersion  | <p>the Mini Program's version, release/trial.</p><p>notice：The trial version is only supported out of the Wechat Env.<br>Trial redirection tool：<a href="http://47.108.185.11:19000/"><http://47.108.185.11:19000/></a></p> | String | false    |
| sign        | [Data signature](https://newpay-api-document.gitbook.io/newpay-api-document/8.-signature-and-verification)                                                                                                                  | String | true     |

## **3. Response Data**

| **Name**        | **Description**                                                                                           | **Type** |
| --------------- | --------------------------------------------------------------------------------------------------------- | -------- |
| success         | Success flag: true/false                                                                                  | boolean  |
| message         | Response message                                                                                          | string   |
| code            | [Reponse code](https://newpay-api-document.gitbook.io/newpay-api-document/9.-business-code#response-code) | string   |
| timestamp       | Response timestamp                                                                                        | long     |
| data            | Result                                                                                                    | object   |
| > appId         | Unique identifier assigned to a third-party application platform                                          | string   |
| > sign          | Data signature                                                                                            | string   |
| > currency      | Payment currency, LAK/USD                                                                                 | 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   |
