This PR introduces a new feature flag titled enable_upsell_view which is used in the get_success_url methods for both the CardPaymentView and the PaypalPaymentView.
If the transaction was a one-time payment and the enable_upsell_view flag is set to true, then we return the upsell view to the user.
If set to false, then we return the Newsletter Signup thank you page.
This PR also adds tests for both cases (enabled/disabled) for both Card payments and Paypal.
Steps to test
Check this branch out and run inv new-db or inv migrate to apply the migration related to the FeatureFlags.
Make a one-time payment > $20 USD using either the Credit Card form and the test card details below, or through Paypal using the credentials found in 1Password.
Once your payment has been submitted, the site should redirect you to the newsletter sign up page.
Closes #1724
Description
This PR introduces a new feature flag titled
enable_upsell_view
which is used in theget_success_url
methods for both theCardPaymentView
and thePaypalPaymentView
.If the transaction was a one-time payment and the
enable_upsell_view
flag is set to true, then we return the upsell view to the user.If set to false, then we return the Newsletter Signup thank you page.
This PR also adds tests for both cases (enabled/disabled) for both Card payments and Paypal.
Steps to test
inv new-db
orinv migrate
to apply the migration related to the FeatureFlags.Test Card Details
Card Number: 4111 1111 1111 1111 EXP: 11/23 CVV: 123