mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-17 06:54:03 +00:00
54 - Retrieving the Last Charge
This commit is contained in:
@@ -25,5 +25,11 @@ class StripePaymentGatewayTest extends TestCase
|
|||||||
$paymentGateway->charge(2500, $token);
|
$paymentGateway->charge(2500, $token);
|
||||||
|
|
||||||
// Verify that the charge was completed successfully
|
// 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