# 4.2.3 Obtain Payment Information

## 1. Overview

Obtain payment infomation through this API, then initiate WeChat Pay by calling `wx.requestPayment(OBJECT),` [`more >>`](https://pay.weixin.qq.com/doc/global/v3/zh/4013014322)

## 2. Request Info

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

### **2.1 Request Header**

| Key          | Value            |
| ------------ | ---------------- |
| Content-Type | application/json |
| version      | 1.0              |

### **2.2 Request Data**

| Name          | Description                                                                                                                     | Type   | Required |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------ | -------- |
| code          | get from mini program while login,ref [this](https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html) | String | true     |
| newpayOrderNo | order no in newpay, get from scheme-url                                                                                         | Long   | true     |
| timestamp     | request timestamp                                                                                                               | Long   | 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   |
| > paySign  | the signed string generated by wechat, ref [this](https://pay.weixin.qq.com/doc/global/v3/zh/4013014322#3.-paySign%E7%94%9F%E6%88%90%E8%A7%84%E5%88%99) | string   |
| > signType | RSA default                                                                                                                                             | string   |
| > nonceStr | random string                                                                                                                                           | string   |
| > package  | external parameter, like prepay\_id=wx201410272009395522657a690389285100                                                                                | string   |
