mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
stripe test
This commit is contained in:
parent
b001f54b84
commit
036bb00c08
@ -69,10 +69,10 @@ class OrderController extends Controller
|
||||
case 'source.chargeable':
|
||||
$source = $event->data->object;
|
||||
\Stripe\Charge::create([
|
||||
'amount' => $source['amount'],
|
||||
'currency' => $source['currency'],
|
||||
'source' => $source['id'],
|
||||
'metadata' => $source->metadata
|
||||
'amount' => $source->amount,
|
||||
'currency' => $source->currency,
|
||||
'source' => $source->id,
|
||||
'metadata' => (array)$source->metadata
|
||||
]);
|
||||
die('success');
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user