storefront checkout endpoint

franktby
Shopify Expert
2 0 1

Hi,

https://boyu-checkout-test.myshopify.com/products/buy-it-now

I'm working on buy it now button and it has an endpoint I want to use: "/wallets/checkouts.json"

I can't find any doc describes it so I want to know that what fields in the payload stands for:

{"checkout":{"line_items":[{"variant_id":32909509132420,"quantity":1}],"secret":true,"wallet_name":"Checkout","is_upstream_button":true,"page_type":"product","presentment_currency":"CAD"}}

 

Specifically:  "secret":true,"wallet_name":"Checkout","is_upstream_button":true,"page_type":"product"

 

Thanks 🙂

 

Replies 2 (2)
Jason
Shopify Expert
11119 218 2266

What's the use case?

 

Undocumented urls are always a sign of something you should not be trying to tap into as they may be entirely unsupported or subject to change without notice.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
franktby
Shopify Expert
2 0 1

The use case is my app hijacks that button. Under certain circumstances I want to remove the hijack and resume the default behaviour. That's why I want to figure out how to mirror the default behaviour 🙂