- No; you can see in your code that you set this via
$money->setAmount(5.01);
, so this can be set at any point in your code (in the PHP backend). - No. Orders essentially allows you to include itemization (items, taxes, discounts, etc). If you simply want a price, but not know what the customer paid for, you do not need to create an order.
-
source_id
needs to be filled. This is typically anonce
from the Square Payment Form that is generated after a customer enters their card information.
1 Like