Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rap2hpoutre committed Jan 16, 2018
1 parent c659aa8 commit 29feeca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use Rap2hpoutre\LaravelStripeConnect\StripeConnect;
### Example #1: direct charge

The customer gives his credentials via Stripe Checkout and is charged.
It's a one shot process. `$customer` and `$vendor` must be `User` instances.
It's a one shot process. `$customer` and `$vendor` must be `User` instances. The `$token` must have been created using [Checkout](https://stripe.com/docs/checkout/tutorial) or [Elements](https://stripe.com/docs/stripe-js).

This comment has been minimized.

Copy link
@WeeHong

WeeHong Jan 16, 2018

$customer and $vendor has to be an Object

For testing purpose, $customer and $vendor can create manually.

// Manually create
$customer = (object)array('email' => 'user@gmail.com');

OR

// Eloquent method
$customer = User::where('email', 'user@gmail.com')->get();
```php
StripeConnect::transaction($token)
Expand Down

1 comment on commit 29feeca

@WeeHong
Copy link

@WeeHong WeeHong commented on 29feeca Jan 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before using Stripe Connect, user needs to check if their country supported by Stripe.

image

Please sign in to comment.