#Badr-paymentrequest
1 messages ยท Page 1 of 1 (latest)
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?
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 .
hmm ok! Not sure what you mean by "force" and "they". But yes, you can update the amount dynamically in some cases, that's what https://stripe.com/docs/js/payment_request/events/on_shipping_address_change#payment_request_on_shipping_address_change-handler-updateWith is for(it's to let you update the total based on the address the customer enters, etc).
You can use pending amounts, or you can make the amount be 0, what I've described are the options and what you have available to work with
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.
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 ๐