Description
Describe the bug
Shipping method isn't picked up by WooGraphql while checkout.
To Reproduce
These are available shipping methods.
[ { "packageDetails": "Handi Quilter Moxie ST with Insight Table ×1", "rates": [ { "cost": "0.00", "id": "free_shipping:4", "instanceId": 4, "label": "Free shipping", "methodId": "free_shipping" }, { "cost": "124.40", "id": "usps:9:D_GROUND_ADVANTAGE", "instanceId": 9, "label": "Ground Advantage™ (USPS) (USPS)", "methodId": "usps" }, { "cost": "350", "id": "flat_rate:5", "instanceId": 5, "label": "Flat rate", "methodId": "flat_rate" }, { "cost": "0.00", "id": "local_pickup:2", "instanceId": 2, "label": "Local pickup", "methodId": "local_pickup" }, { "cost": "0.00", "id": "local_pickup_plus", "instanceId": null, "label": "Local Pickup", "methodId": "local_pickup_plus" } ] } ]
checkout mutation input
{ billing: { firstName: 'ab', lastName: '12', address1: '2315 E Imperial Highway, Suite B', address2: '', city: 'Brea', state: 'CA', country: 'US', postcode: '92821', phone: '2323232', email: 'test+1@gmail.com', company: '' }, clientMutationId: 'u133r73Jb6qIJtx4s8hNj', customerNote: '', isPaid: false, metaData: [ { key: 'apiVersion', value: 'v13' }, { key: 'WpContent', value: 'vacuums' }, { key: 'clientMutationId', value: 'u133r73Jb6qIJtx4s8hNj' } ], paymentMethod: 'yith-stripe', shipToDifferentAddress: false, shipping: { firstName: 'ab', lastName: '12', address1: '2315 E Imperial Highway, Suite B', address2: '', city: 'Brea', state: 'CA', country: 'US', postcode: '92821', phone: '2323232', email: 'test+1@gmail.com', company: '' }, shippingMethod: [ 'usps:9:D_GROUND_ADVANTAGE' ], transactionId: null }
I have applied usps:9:D_GROUND_ADVANTAGE
shipping method
Expected behavior
A shipping charge of $124.40 should be applied to the order.
Plugin Versions
- WooGraphQL Version: 1.5.0
- WPGraphQL Version:1.31.1
- WordPress Version:6.7.1
- WooCommerce Version:9.6.1