mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-11 07:57:12 +08:00
发起支付简化交易类型,方法能够确定交易类型的全部以方法为基准,如果自行设置了但发现不一样就报错提示
This commit is contained in:
@@ -146,6 +146,10 @@ public class PayPalPayService extends BasePayService<PayPalConfigStorage>{
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> orderInfo(PayOrder order) {
|
||||
if (null == order.getTransactionType()){
|
||||
order.setTransactionType(PayPalTransactionType.sale);
|
||||
}
|
||||
|
||||
Amount amount = new Amount();
|
||||
if (null == order.getCurType()){
|
||||
order.setCurType(DefaultCurType.USD);
|
||||
|
||||
Reference in New Issue
Block a user