1 2 3 4 5 |
<dependency> <groupId>com.stripe</groupId> <artifactId>stripe-java</artifactId> <version>20.75.0</version> </dependency> |
Maven Dependency
1 2 3 4 5 6 7 8 9 10 |
RequestOptions requestOptions = RequestOptions.builder() .setApiKey("sk_test_4eC39HqLyjWDarjtT1zdp7dc") .build(); Charge charge = Charge.retrieve( "ch_3JYwgv2eZvKYlo2C09Bhe81y", requestOptions, ); charge.save(); // Uses the same API Key. |
Ref: stripe.com/docs/api?lang=java