发起支付简化交易类型,方法能够确定交易类型的全部以方法为基准,如果自行设置了但发现不一样就报错提示

This commit is contained in:
egzosn
2019-12-08 21:01:23 +08:00
parent 99895bf540
commit 9c447db949
8 changed files with 84 additions and 34 deletions

View File

@@ -263,6 +263,8 @@ public class PayoneerPayService extends BasePayService<PayoneerConfigStorage> im
*/
@Override
public Map<String, Object> microPay(PayOrder order) {
order.setTransactionType(PayoneerTransactionType.CHARGE);
HttpStringEntity entity = new HttpStringEntity(JSON.toJSONString(orderInfo(order)), ContentType.APPLICATION_JSON);
//设置 base atuh
entity.setHeaders(authHeader());