Week 10 Issue
From below log i can confirm the correct quote for the delivery is created but then the Front End which is CheckoutScreen.js is not being updated and is always falling back to the default 20km fee
POST /api/sherpa/create-delivery
[SHERPA] Create delivery request: {
pickup: '123 kings street',
pickupLat: null,
pickupLng: null,
dropoff: 'Auburn, New South Wales, Australia',
lat: -33.854885,
lng: 151.0247,
vehicleType: 1,
foodTitle: 'Momo',
receiverName: 'Sri ',
receiverPhone: '1234567899'
[SHERPA] Authenticating for delivery creation...
[SHERPA] Auth success (delivery).
[SHERPA] Getting quote before creating delivery…
[SHERPA] Got quote for delivery creation: 47.15
[SHERPA] Sending delivery payload: {
pickup_address: '123 kings street',
pickup_address_latitude: null,
pickup_address_longitude: null,
delivery_address: 'Auburn, New South Wales, Australia',
delivery_address_latitude: -33.854885,
delivery_address_longitude: 151.0247,
vehicle_id: 1,
quoted_price: '47.15',
item_description: 'Momo',
delivery_name: 'Sri ',
delivery_phone: '1234567899',
pickup_name: 'Food Next Door',
pickup_phone: '0242333328'
}
[SHERPA] Delivery created successfully: 704207


Comments
Post a Comment