| | |
| | | * @param narration 备注 |
| | | * @return |
| | | */ |
| | | public PayoutResponse sendPayout(String phone, String payerTransactionID, Double amount, String callbackUrl, String narration) { |
| | | public PayoutResponse sendPayout(String serviceCode, String phone, String payerTransactionID, Double amount, String callbackUrl, String narration) { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | Credentials credentials = new Credentials("igo_api_user", "mXo%kJM.p;_i)SSZ&^b?6XSH)D+OCPh8"); |
| | | List<Packet> packets = new ArrayList<>(); |
| | | Packet packet = new Packet(); |
| | | packet.setServiceCode("GH-TIGO-B2C");//手机网络运营商 GH-MTN-B2C、GH-TIGO-B2C、GH-VODAFONE-B2C、GH-AIRTEL-B2C |
| | | packet.setServiceCode(serviceCode);//手机网络运营商 GH-MTN-B2C、GH-TIGO-B2C、GH-VODAFONE-B2C、GH-AIRTEL-B2C |
| | | packet.setMSISDN(phone); |
| | | packet.setAccountNumber(phone); |
| | | packet.setPayerTransactionID(payerTransactionID); |