v1.1 谷歌支付-接入策略,兼容vip贵族
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user