currency - This is the specified currency to charge the card in.
amount - This is the amount of the product or service to charged from the customer
card6 - The first 6digits of their card number, it also helps determine international fees on the transaction if the card being used is an international card
-
getFees()
currency - This is the specified currency to charge the card in.
amount - This is the amount of the product or service to charged from the customer
returns
JSONObject
-
getFeesForCard6()
currency - This is the specified currency to charge the card in.
amount - This is the amount of the product or service to charged from the customer
card6 - The first 6digits of their card number, it also helps determine international fees on the transaction if the card being used is an international card
returns
JSONObject
data.charge_amount:
This the total amount to be charged, total amount = amount + fee
data.fee:
This is a cumulative of the merchantfee (if applicable) + ravefee
data.merchantfee:
This is the merchant fee on the transaction, it is applicable when using a subdomain. Subdomains allow you white-label rave, and offer it as a customised service to your merchant, we allow you set a markup fee on it and earn transaction fees. In this scenario the merchant-fee would be the subdomain markup fee if applicable.
data.ravefee:
This is the fee charged per transaction by rave.
RaveConstant.PUBLIC_KEY="FLWPUBK-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-X";
RaveConstant.SECRET_KEY="FLWSECK-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-X";
RaveConstant.ENVIRONMENT=Environment.STAGING; //or live
Fees fee=new Fees();
//set field values
fee.setAmount("500")
.setCard6("829222")
.setCurrency("NGN");
System.out.println(fee.getFees());
System.out.println(fee.getFeesForCard6());