Skip to content

Latest commit

 

History

History
62 lines (34 loc) · 2.07 KB

FEES.md

File metadata and controls

62 lines (34 loc) · 2.07 KB

Fees

Class Name - Fees

Fields

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

Methods

  1. 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

  2. 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

The successful response for get fees endpoint is broken down this way:

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.

Sample

        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());