# wx.requestOrderPayment(Object args)

Base library 2.16.0 Starts support; lower versions need compatibility.

Call in Promise style: Support Weixin Mini Program Plugin: Not supported

# Features Description

Only access to the transaction component, Weixin Mini Program payment management services Mini programs need to use, ordinary Mini programs can directly use wx.requestPayment.

# parameter

# Object args

attribute type Default values Required to fill in Introductions
timeStamp string yes Time stamp, the number of seconds from 00: 00: 00 on 1 January 1970, i.e. the current time
nonceStr string yes Random character string, less than 32 characters long
package string yes Unify the prepay_id parameter value returned by the single interface in the submission format such as: prepay_id =***
paySign string yes Signature, see WeChat Payment Document
orderInfo Object no Order information needs to be passed only in cases where verification is required, as specified in the interface instructions
extUserUin string no External APP User ID
signType string MD5 no The signature algorithm should be consistent with the value when the order is placed in the background,
success function no The interface calls a successful callback function
fail function no A callback function that fails to call an interface
complete function no The interface calls a callback function that ends (both successful and failed calls are executed)
Legal value Introductions
MD5 Only available on v2 interface
HMAC-SHA256 Only available on v2 interface
RSA Only available on v3 interface

# sample code

wx.requestOrderPayment({
  timeStamp: '',
  nonceStr: '',
  package: '',
  signType: 'MD5',
  paySign: '',
  success (res) { },
  fail (res) { }
})