Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.07 KB

CHECKSUM.md

File metadata and controls

37 lines (25 loc) · 1.07 KB

IntegrityChecksum

Class Name - IntegrityChecksum

Method

  1. integrityChecksum(HashMap payload)
  • returns String(hashed)

Sample

        RaveConstant.PUBLIC_KEY="FLWPUBK-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-X";
        RaveConstant.SECRET_KEY="FLWSECK-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-X";
        RaveConstant.ENVIRONMENT=Environment.STAGING; //or live

      IntegrityChecksum ch=new IntegrityChecksum();
    
           ch.setAmount("20")
            .setPayment_method("both")
            .setCustom_description("Pay Internet")
            .setCustom_logo("http://localhost/payporte-3/skin/frontend/ultimo/shoppy/custom/images/logo.svg")
            .setCountry("NG")
            .setCurrency("NGN")
            .setCustomer_email( "[email protected]")
            .setCustomer_firstname("Temi")
            .setCustomer_lastname("Adelewa")
            .setCustomer_phone("234099940409")
            .setTxref("MG-CKSKKHH");
       
       
      String hash= ch.integrityChecksum();