Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plans in Site Creation: Create functionality to add domain with a plan to a cart #21636

Closed
staskus opened this issue Sep 26, 2023 · 0 comments · Fixed by #21667
Closed

Plans in Site Creation: Create functionality to add domain with a plan to a cart #21636

staskus opened this issue Sep 26, 2023 · 0 comments · Fixed by #21667
Assignees

Comments

@staskus
Copy link
Contributor

staskus commented Sep 26, 2023

Update WordPressKit-iOS to support adding selected plans together with the domain.

To add a plan to a cart via me/shopping-cart/siteID we need to provide an object containing product_id of a plan. Example:

var planDictionary: [String: AnyObject] = [
    "product_id": 1003 as AnyObject
]
let parameters: [String: AnyObject] = [
    "temporary": (temporary ? "true" : "false") as AnyObject,
    "products": [productDictionary, planDictionary] as AnyObject
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant