63 - Capturing Charges with Callbacks

This commit is contained in:
Adam Wathan
2017-01-18 09:47:54 -05:00
parent f1a57e27f6
commit 0d7720cdc0
2 changed files with 24 additions and 2 deletions

View File

@@ -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());
});