NikolaGavric94 / laravel-square

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

Undefined Source_id #43

Closed Itedjere closed 4 years ago

Itedjere commented 4 years ago

Good day. Thanks for this wonderful laravel square package. It helps alot

I was trying to run a transaction, but I was getting an undefined source_id at \vendor\nikolag\laravel-square\src\SquareService.php:229

I don't know why.

I passed the following key value pairs to the square::charge method amount, card_nonce location_id currency.

Am I suppose to pass some source_id??

Thanks

NikolaGavric94 commented 4 years ago

Hello @Itedjere, sorry for late response, but I think you are not sending one of the required parameters, you can check the example and full explanation of each parameter needed here.

If you are still experiencing issues, don't hesitate to post it here.

P.S: In previous versions, we called it form_nonce but since we are closely following square api updates, we renamed it to source_id in newer versions of the package, you can check the full change log

NikolaGavric94 commented 4 years ago

@Itedjere I will close the issue if you don't have any feedback on this by the end of the day. Thanks

Itedjere commented 4 years ago

Sorry for the delay. I changed it from form_nonce to source_id and it worked fine.

Thanks.