use of jp.ne.paypay.api.CashbackApi in project paypayopa-sdk-java by paypay.
the class CashbackApiExample method main.
public static void main(String[] args) throws ApiException {
ApiClient apiClient = new Configuration().getDefaultApiClient();
apiClient.setProductionMode(false);
apiClient.setApiKey("API_KEY");
apiClient.setApiSecretKey("API_SECRET_KEY");
apiClient.setAssumeMerchant("YOUR_MERCHANT_ID");
String userAuthorizationId = "USER_AUTHORIZATION_ID";
CashbackApi cashbackApi = new CashbackApi(apiClient);
CashbackDetails cashbackDetails = giveCashback(cashbackApi, userAuthorizationId, 1);
if (cashbackDetails != null && cashbackDetails.getData() != null) {
reverseCashback(cashbackApi, cashbackDetails.getData().getMerchantCashbackId(), 1);
}
}
Aggregations