#Badr-paymentrequest

1 messages ยท Page 1 of 1 (latest)

fringe nova
#

you can pass pending:true in that hash

#

AFAIK though only Apple respects that in their UI, for Google it doesn't do anything and the UI just shows the amount regardless

#

can you expand a little on the use case here and why you want to not send/show an amount?

bold anvil
#

if we got forced for it then we have to find a way to get the amount before making the payment , it's a place where the user add the amount himself manually but we do apply some additional fee after and that fee also a dynamic fee depending to what are you paying for . so I was like if I can hide the amount it would be better . but in case they force us to do that we have to make some additional request and get the total expected amount => then update the object item again

#

and like what you said , seems like google pay doesn't respect that field on the ui at all .

fringe nova
#

overall it's generally better to structure your overall checkout flow so that you only present this button to the customer when you have finalised their order and know what they're going to pay, so you can populate the sheet with the final totals, if that's an option.

bold anvil
#

I meant with "force"
if we have no second option to not send the amount as now that must be 0 or like what you just said . when we know the full amount . anyway thanks a lot for the help ๐Ÿ™ you are the best ๐Ÿ˜„