Closed arunavaghsh84 closed 4 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
];