NikolaGavric94 / laravel-square

Square integration with Laravel/Lumen >=5.5
MIT License
31 stars 23 forks source link

Update an example from 'card_nonce' to 'source_id' #31

Closed ya-ya-it closed 4 years ago

ya-ya-it commented 4 years ago

I updated the plugin to the last version, and it starts to throw an error 'source_id is missing'. As I understand from the code, you changed the 'card_nonce' to 'source_id' field. This code is working for me.

$options = [ 'amount' => $amount, 'source_id' => $request->input('nonce'), 'location_id' => env('SQUARE_LOCATION_ID'), 'currency' => 'CAD' ];

Please, change the examples.

NikolaGavric94 commented 4 years ago

Fixed, thanks