Remove isPayPalDomain from subscriptions props #2568
                
     Merged
            
            
          
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
What is the purpose of this PR?
Full Stack Subscriptions JS SDK changes are ready to be released so we want to allow external domains to use the new subscriptions props.
Original PR when adding subscriptions with paypal domain restriction: https://github.com/paypal/paypal-checkout-components/pull/2449/files
JIRA: https://paypal.atlassian.net/browse/DTPRP-3083
Type of change
Testing Plan
Below is information that validates the successful implementation of this feature and how a release manager can validate the success of a release candidate in the absence of the PR author.
PR Author: https://paypal.enterprise.slack.com/team/W5GDX9QHK
Backup Validator: https://paypal.enterprise.slack.com/team/W3Y29T22H
PR Author's Team: PPCP Subscriptions
Test Environment URL: TBD (Will be ready when testing alpha version)
Step-by-Step Validation
Get a Client ID
You need a client ID that is ramped to the experiment
sdk_ppcp_fs_subscriptionsSee this document for client IDs ramped to this elmo: https://paypal.atlassian.net/wiki/spaces/PnM/pages/2712746465/FSS+JS+SDK+Client+IDs+for+stage
Test script - save this test script as an HTML file and replace "<CLIENT_ID>" with a client ID from step 1
Setup localhost
Use node
http-server(either npx or global) to serve the HTML file tolocalhost:8080or127.0.0.1:8080Run JS SDK
Run JS SDK v5 in First render mode using the changes for
paypal-checkout-componentsfrom branchwooslim:feature/fss-remove-internaland clientsdknodeweb.This should serve the script in
https://localhost.paypal.com:8443/sdk/jswith these code changes.Navigate to
http://127.0.0.1:8080/card-fields-test.htmlto verify that the card-fields are rendering properly.Before/After Screenshots
Before:
Props are not loaded for
127.0.0.1domain. It only renders forlocalhostand*.paypal.*domainsTesting with locally hosted JS SDK test app:
After:
Props are loaded for any domains and card fields are rendered - tested with
127.0.0.1Testing with locally hosted JS SDK test app:
E2E Test Recording
DataDog Graph to Monitor
CAL Logs & Regex
Rollback Considerations
Are there any services dependent on this change?