v1.1 谷歌支付-接入策略,兼容vip贵族

This commit is contained in:
2022-10-11 20:18:49 +08:00
parent cedf79db66
commit d4fcae3c94
3 changed files with 45 additions and 56 deletions

View File

@@ -0,0 +1,23 @@
package com.accompany.payment.strategy;
import com.accompany.common.constant.Constant;
import com.accompany.payment.annotation.PayChannelSupport;
import com.accompany.payment.dto.AppInnerPayRecordDTO;
import com.accompany.payment.model.ChargeRecord;
import org.springframework.stereotype.Service;
@Service
@PayChannelSupport(Constant.ChargeChannel.google_play_billing)
public class GooglePlayStrategy extends AbstractPayStrategy {
@Override
public Object pay(PayContext context) throws Exception {
ChargeRecord chargeRecord = context.getChargeRecord();
AppInnerPayRecordDTO recordIdVo = new AppInnerPayRecordDTO();
recordIdVo.setRecordId(chargeRecord.getChargeRecordId());
return recordIdVo;
}
}