Skip to content

Commit ccb0157

Browse files
committed
checkout doc
1 parent 2519485 commit ccb0157

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/payment-checkout.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ STRIPE_CANCEL_URL="http://127.0.0.1:8000/checkout/cancel"
1717
## checkout
1818

1919
```php
20-
$checkout = LaraStripeCheckout::tnx('tnx-1212134')
21-
->amount(233)
22-
->get();
23-
return response()->json($checkout);
20+
$checkout = LaraStripeCheckout::tnx('tnx-1212134')
21+
->amount('236')
22+
->additionalData(['transaction_id' => 'tnx-1212'])
23+
->get();
24+
return response()->json($checkout);
2425

2526
// output
2627
{

0 commit comments

Comments
 (0)