{"id":24525933,"url":"https://github.com/29next/example-2step-campaign","last_synced_at":"2025-10-05T18:53:19.582Z","repository":{"id":267245274,"uuid":"805035512","full_name":"29next/example-2step-campaign","owner":"29next","description":"Example External Campaign using Campaigns API","archived":false,"fork":false,"pushed_at":"2025-03-24T23:27:39.000Z","size":1851,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T14:55:02.260Z","etag":null,"topics":["campaigns","ecommerce","ecommerce-api","funnels"],"latest_commit_sha":null,"homepage":"https://example-campaign.29next.com/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/29next.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-23T18:54:17.000Z","updated_at":"2025-07-02T01:46:51.000Z","dependencies_parsed_at":"2024-12-09T09:13:33.894Z","dependency_job_id":"63d20c1d-346c-40f9-b7c6-cc9d6f53d031","html_url":"https://github.com/29next/example-2step-campaign","commit_stats":null,"previous_names":["29next/example-2step-campaign"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/29next/example-2step-campaign","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/29next%2Fexample-2step-campaign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/29next%2Fexample-2step-campaign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/29next%2Fexample-2step-campaign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/29next%2Fexample-2step-campaign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/29next","download_url":"https://codeload.github.com/29next/example-2step-campaign/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/29next%2Fexample-2step-campaign/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278503206,"owners_count":25997717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["campaigns","ecommerce","ecommerce-api","funnels"],"created_at":"2025-01-22T05:29:17.683Z","updated_at":"2025-10-05T18:53:19.577Z","avatar_url":"https://github.com/29next.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example 2 Step Campaign\n\nThis is an example of a simple 2 step campaign that demostrates a straight forward integration with the [29next Campaigns App](https://developers.29next.com/docs/api/campaigns/)\n\nYou can run these pages on a local server using this script and get real feedback from a test store on 29next\n\n```\nnpm install\n\nnpm start\n```\n\n### Step 1 Customer Information Page\n\nA basic offer select and order summary with the customer information form.\n\nContains an example of using the [Create Cart](https://developers.29next.com/docs/api/campaigns/#create-cart) method to capture user information before going to a payment page to complete the order.\n\nWe are utilizing [Just Validate](https://just-validate.dev/) as an example of form validation\n\nWe are utilizing [International Telephone Input](https://intl-tel-input.com/) for phone number validation\n \n### Step 2 Payment Information Page\n\nThe example of the [Create Order](https://developers.29next.com/docs/api/campaigns/#create-order) method shows:\n\n- An example of the required [iFrame Payment Form](https://developers.29next.com/docs/api/admin/guides/iframe-payment-form/) integration for Bankcard payments\n\n- Also shows an example of how to handle an example \"APM Redirect Payment Flow\" for paypal\n\nWe are utilizing [Just Validate](https://just-validate.dev/) as an example of form validation\n\nYou can use our [test cards](https://docs.29next.com/manage/orders/test-orders) to create a card order\n\n\n### Upsell page\n\nDemostrates a basic example of the [Retrieve Order Details](https://developers.29next.com/docs/api/campaigns/#adding-upsells) method to check if the choosen payment method supports post purchase upsells \n\nAs well as the [Create Upsell Order](https://developers.29next.com/docs/api/campaigns/#adding-upsells) method to show how to add post purchase upsells to an order if the payment method supports them\n\n\n### Thank You  / Confirmation page\n\nShows an example of using the [Retrieve Order Details](https://developers.29next.com/docs/api/campaigns/#adding-upsells) method to map the values to the template to create an order summary for the customer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F29next%2Fexample-2step-campaign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F29next%2Fexample-2step-campaign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F29next%2Fexample-2step-campaign/lists"}