拉起支付中台

API 兼容性:
QRN:v5.6.1

引入

import { Pay } from "qunar-react-native";

API

middlePay

调用 Pay.middlePay(url, payResultCallback,failCallback)拉起支付中台

url(string) 为必传参数

payResultCallback 为成功回调,failCallback 为失败回调

Pay.middlePay(url, payResultCallback = () => {}, failCallback = () => {})