4.2.3 Obtain Payment Information

1. Overview

Obtain payment infomation through this API, then initiate WeChat Pay by calling wx.requestPayment(OBJECT), more >>arrow-up-right

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 thisarrow-up-right

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

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 thisarrow-up-right

string

> signType

RSA default

string

> nonceStr

random string

string

> package

external parameter, like prepay_id=wx201410272009395522657a690389285100

string

Last updated