Dynamic Price set on ecommerce checkout page

  1. 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).
  2. 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.
  3. source_id needs to be filled. This is typically a nonce from the Square Payment Form that is generated after a customer enters their card information.
1 Like