Hi Bryan,
Ok, narrowed down the issue to the below.
When i include a shipping fee with the payment link, the payment is never taken straight away.
If i exclude the shipping fee, then it works fine.
Why is it when a shipping fee is provided that subscription shows as not paid?
$charge = new \Square\Models\Money();
$charge->setAmount(200);
$charge->setCurrency('GBP');
$shipping_fee = new \Square\Models\ShippingFee($charge);
$shipping_fee->setName('Card processing fee');
$quick_pay = new \Square\Models\QuickPay(
$plan_friendly_name,
$price_money,
$location_id
);
$accepted_payment_methods = new \Square\Models\AcceptedPaymentMethods();
$accepted_payment_methods->setApplePay(true);
$accepted_payment_methods->setGooglePay(true);
$checkout_options = new \Square\Models\CheckoutOptions();
$checkout_options->setSubscriptionPlanId($plan_id);
$checkout_options->setAskForShippingAddress(false);
$checkout_options->setShippingFee($shipping_fee);
Regards,
dmxit