- Create documentation
-
Add dependency to your
pom.xml<dependency> <groupId>io.github.basithnurfaizin</groupId> <artifactId>payment</artifactId> <version>0.0.2-SNAPSHOT</version> </dependency> -
Create configuration
String clientId = "urClientId"; String clinetSecret = "urClientSecret"; //url sanbox String urlOuth = "https://sandbox.partner.api.bri.co.id/oauth/client_credential/accesstoken?grant_type=client_credentials"; String relativeUrlBriva = "/v1/briva"; Strubg baseUrlBriva = "https://sandbox.partner.api.bri.co.id"; AuthenticationBRIVAServiceImpl authenticationBRIVAService = new AuthenticationBRIVAServiceImpl( clientId, clientSecret, UrlOauth ); BrivaService brivaService = new BRIVAServiceImpl(authenticationBRIVAService, relateiveUrlBriva, baseUrlBriva); -
Integration with spring boot , you have to create configuration class with BrivaService Bean
@Bean public BRIVAServiceImpl brivaService() throws IOException, InterruptedException { AuthenticationBRIVAServiceImpl authenticationBRIVAService = new AuthenticationBRIVAServiceImpl( "b7u14HQYzgdJTP88uoLXqV561S9zyMB2", "sBHEDztKD6XrVpeY", "https://sandbox.partner.api.bri.co.id/oauth/client_credential/accesstoken?grant_type=client_credentials" ); return new BRIVAServiceImpl(authenticationBRIVAService, "/v1/briva","https://sandbox.partner.api.bri.co.id"); } -
Create Virtual Account
-
Get Virtual Account
-
Update Status Payment
-
Update Virtual Account Information
-
Get Report
-
Delete