NikolaGavric94 / laravel-square

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

Undefined index: source_id #44

Closed arunavaghsh84 closed 4 years ago

arunavaghsh84 commented 4 years ago

image

HassanElshazlyEida commented 3 years ago
$amount = 5000; //Is in USD currency and is in smallest denomination (cents). ($amount = 5000 == 50 Dollars)
$formNonce = 'some nonce'; //nonce reference => https://docs.connect.squareup.com/articles/adding-payment-form
$location_id = 'some location id'; //$location_id is id of a location from Square
$currency = 'USD'; //available currencies => https://docs.connect.squareup.com/api/connect/v2/?q=currency#type-currency
$note = 'Note: This payment has been paid in full';
$options = [
  'amount' => $amount,
  'source_id' => $formNonce,
  'location_id' => $location_id,
  'currency' => $currency,
  'note' => $note
];