When there are changes in the shipping address in the checkout, a callback is sent from Dintero’s services to the endpoint that you have specified inDocumentation Index
Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
Use this file to discover all available pages before exploring further.
session.express.example_shipping_address_callback_url with an updated order including the new address.
The webshop should update the webshop state/order with the new shipping address, and return a list of available shipping options for the given shipping address.
Link to the API specification for the callback endpoint. Note that the request body is what Dintero will post to your endpoint and the response is what your endpoint returns back to Dintero.
If the checkout is embedded, the Dintero Web SDK will call onSession whenever the session is updated, with the
event SessionUpdated.
Compatibility with “one click” Apple Pay and Google Pay
In order to support one click express payments via Apple Pay and Google Pay your endpoint must support returning shipping options when thesession.order.shipping_address in the request body from Dintero’s systems contains only country and postal_code.
Troubleshooting
If correction item is added to the order
If the implementation has problems with items of the type correction, you might have problems with the shipping address callback.Item with correction
order.amount.
To solve this, make sure that order.amount contains the amount from the shipping option which is currently chosen.
Example
If the callback contains the following:10000 from the
request order.shipping_option.amount: