mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 03:04:05 +00:00
54 - Retrieving the Last Charge
This commit is contained in:
@@ -25,5 +25,11 @@ class StripePaymentGatewayTest extends TestCase
|
||||
$paymentGateway->charge(2500, $token);
|
||||
|
||||
// Verify that the charge was completed successfully
|
||||
$lastCharge = \Stripe\Charge::all(
|
||||
['limit' => 1],
|
||||
['api_key' => config('services.stripe.secret')]
|
||||
)['data'][0];
|
||||
|
||||
$this->assertEquals(2500, $lastCharge->amount);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user