Hi
I am testing payment checkout with square physical terminal I have. I am using Go SDK.
I would like to display Tip Screen before actual Payment screen on Terminal. I have following code but somehow Tip Screen doesn’t display. I can see Itemized screen and Payment screen but not tip screen. what could be the issue ?
terminal, err := client.Terminal.Checkouts.Create(
context.TODO(),
&terminal.CreateTerminalCheckoutRequest{
Checkout: &square.TerminalCheckout{
DeviceOptions: &square.DeviceCheckoutOptions{
DeviceID: "MY_DEVICE_CODE",
ShowItemizedCart: square.Bool(
true,
),
SkipReceiptScreen: square.Bool(
false,
),
TipSettings: &square.TipSettings{
AllowTipping: square.Bool(true),
SeparateTipScreen: square.Bool(true),
},
},
CustomerID: square.String(
request.Payload.SquareCustomerId,
),
PaymentType: square.CheckoutOptionsPaymentTypeCardPresent.Ptr(),
OrderID: square.String(
request.Payload.SquareOrderId,
),
AmountMoney: &square.Money{
Amount: square.Int64(
util.FloatToInt64(*request.Payload.TotalAmountAfterTax),
),
Currency: square.CurrencyUsd.Ptr(),
},
},
IdempotencyKey: util.GetUUID(),
},
)
if err != nil {
return nil, err
}
return terminal, nil
}
Even I tried different option like this but nothing is working..
TipSettings: &square.TipSettings{
AllowTipping: square.Bool(true),
SeparateTipScreen: square.Bool(true),
CustomTipField: square.Bool(false), // Try setting this to false
TipPercentages: []int{15, 18, 20}, // Try standard percentages
SmartTipping: square.Bool(false), // Try setting this to false
},
can you guide me what could be the issue ?