UNPKG

pay-sdk-react

Version:

A cross-platform payment SDK for React, supporting Alipay, WeChat Pay, PayPal, Stripe, Payssion, and Airwallex, compatible with H5, PC, and App environments.

12 lines 430 B
export default function warning(condition, message) { if (process.env.NODE_ENV !== 'production' && console) { if (condition) { for (var _len = arguments.length, extra = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { extra[_key - 2] = arguments[_key]; } return console.error("[pay-sdk-react]: ".concat(message), extra ? { detail: extra } : undefined); } } }