mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-06 02:49:12 +00:00
63 - Capturing Charges with Callbacks
This commit is contained in:
@@ -24,8 +24,7 @@ class StripePaymentGatewayTest extends TestCase
|
||||
{
|
||||
$paymentGateway = $this->getPaymentGateway();
|
||||
|
||||
// How could we make this API work?
|
||||
$newCharges = $paymentGateway->newChargesDuring(function () {
|
||||
$newCharges = $paymentGateway->newChargesDuring(function ($paymentGateway) {
|
||||
$paymentGateway->charge(2500, $paymentGateway->getValidTestToken());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user