site-kit-wp
site-kit-wp copied to clipboard
Ads PAX Setup Flow Not Proceeding Past Billing Screen Due to `termsAndConditionsService.notify` Function Body Being Empty
Bug Description
The Ads PAX setup flow remains on the billing setup screen even after successful billing configuration on Ads. This is due to the termsAndConditionsService.notify callback function body being empty. It appears as though it needs to return something, i.e an empty object {}.
Steps to reproduce
- Set up Ads using PAX
- Proceed to set up a campaign until the billing screen
- Using the CTA in PAX, navigate to a new Ads window and proceed to set up a valid Ads billing method, i.e CC
- Upon successful completion of billing configuration on Ads, return to PAX app on Site Kit
- Notice that the screen remains on the billing screen and does not advance, thus the
notifyNewCampaignCreatedsignal is never called
Screenshots
N/A
Additional Context
N/A
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The PAX Ads flow should function successfully from initial step to post billing setup, allowing the use of the Complete Setup CTA on the final step to set and save the PAX Conversion ID and External Customer ID settings.
Implementation Brief
- [ ] Update the PAX
termsAndConditionsServicepartner service atassets/js/modules/ads/pax/services.js- [ ] Edit the async function attached to the
notifyproperty and update the body toreturn {};
- [ ] Edit the async function attached to the
termsAndConditionsService: {
notify: async () => {
return {};
},
},
Test Coverage
- Update the existing test suite at
assets/js/modules/ads/pax/services.test.js- Update the
termsAndConditionsService.notifyassertion and expect a return value of{}, not just any function.
- Update the
QA Brief
- Set up Ads using PAX
- Proceed to set up a campaign until the billing screen
- Using the CTA in PAX, navigate to a new Ads window and proceed to set up a valid Ads billing method, i.e CC
- Upon successful completion of billing configuration on Ads, return to PAX app on Site Kit
- Validate that the billing screen disappears after a short while and that you are able to complete set up using the "Complete set up" CTA button
- Validate that the PAX Conversion ID and External Customer ID fields are set within Settings > Ads
Changelog entry
IB ✅
QA Update: ✅
Verified:
- Using the CTA in PAX, I navigated to a new Ads window and I proceeded to set up a valid Ads billing method. Upon successful completion of billing configuration on Ads, I return to PAX app on Site Kit and the billing screen disappears after a few seconds and I am able to complete set up using the "Complete set up" CTA button.
- The PAX Conversion ID and External Customer ID fields are set within Settings > Ads.
https://github.com/google/site-kit-wp/assets/73545194/0755e99b-eb5f-43f7-aeea-fbe7161c7d13