How to tell user the postage amount has altered in onShippingChange?

Brisbane22
Contributor
Contributor

I am using <Removed> with all activity in the browser and javascript.

How can I notify the customer that the charge for postage has altered?

The use case is choosing the "Paypal" button, and logging in -- not the "Credit Card" button.

 

In the Smart sdk the "onShippingChange" function is executed. I can detect the change of country code but how to tell the user about the changed charge?

Compared to a local delivery (which would be the default calculation), the charge for overseas postage can be much higher.

 

I cannot use an alert because that shows within the main browser window, but the activity is now in the pop-up dialog that handles the paypal login, and offers change of address. The alert in the main browser window is not seen because it is behind the popup dialog,.

 

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

Brisbane22
Contributor
Contributor

Never mind, the Paypal popup dialog handles it fine.

 

Now that I have the "return actions.order.patch([" working, I can see the window shows the new total, and a message at the top.

"Based on your shipping address, your new total is ...".

Thank you.

aImage1.jpg

View solution in original post

Login to Me Too
1 REPLY 1
Solved

Brisbane22
Contributor
Contributor

Never mind, the Paypal popup dialog handles it fine.

 

Now that I have the "return actions.order.patch([" working, I can see the window shows the new total, and a message at the top.

"Based on your shipping address, your new total is ...".

Thank you.

aImage1.jpg

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.