@Test public void testChargeRetrievePerCallAPIKey() throws StripeException { Charge createdCharge = Charge.create(defaultChargeParams, Stripe.apiKey); Charge retrievedCharge = Charge.retrieve(createdCharge.getId(), Stripe.apiKey); assertEquals(createdCharge.getCreated(), retrievedCharge.getCreated()); assertEquals(createdCharge.getId(), retrievedCharge.getId()); }