Customers should not be required to submit any address during checkout, unless they are a business or have requested to include shipping.
How to Reproduce
Method A: Through the frontend
Start the frontend and navigate to it in your browser.
Add products to your shopping cart.
Proceed through the checkout page as normal, requesting a normal Bill as billing method and filling all important details.
Except addresses: do not request shipping and do not provide any address at all.
Hit Request transaction or the equivalent "submit" action button.
The request should have failed.
Method B: Interfacing
Get a JSON representing a valid SellPojo object (the API spec document has some examples)
Ready it through a third-party (curl, Postman, etc).
Ensure billingAddress is an invalid address (can be absent or null).
Send a request to /public/checkout using this JSON.
It should respond with a 400 Bad Request, indicating that the billingAddress is not meeting the validation requirements.
Expected behavior
In either of these cases, the request should have succeeded, leaving the respective billingAddress as null and proceeding through the internal checkout process.
Build context
Project version
v0.1.0
Summary
Customers should not be required to submit any address during checkout, unless they are a business or have requested to include shipping.
How to Reproduce
Method A: Through the frontend
Request transaction
or the equivalent "submit" action button.Method B: Interfacing
SellPojo
object (the API spec document has some examples)billingAddress
is an invalid address (can be absent ornull
)./public/checkout
using this JSON.billingAddress
is not meeting the validation requirements.Expected behavior
In either of these cases, the request should have succeeded, leaving the respective
billingAddress
asnull
and proceeding through the internal checkout process.