Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Add PayPal as default fallback gateway#7044

Merged
joshuatf merged 2 commits intomainfrom
add/6855-paypal
May 25, 2021
Merged

Add PayPal as default fallback gateway#7044
joshuatf merged 2 commits intomainfrom
add/6855-paypal

Conversation

@joshuatf
Copy link
Contributor

Fixes (part of) #6855

  • Adds PayPal as a default payment gateway
  • Filters out required fields that aren't found

Note: The PayPal gateway will require some refactoring for the connection URL and setup keys now showing in the REST response. This PR is simply about getting the gateway to show up in the recommendations list.

Screenshots

Screen Shot 2021-05-21 at 1 54 49 PM

Detailed test instructions:

  1. Delete any remote recommendation transients.
  2. Load the payments task.
  3. Note that PayPal shows up in the list.

Copy link
Contributor

@psealock psealock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is testing well, just a comment about the CBD check.

Also, is this just for India?

'type' => 'option',
'option_name' => 'woocommerce_onboarding_profile',
'value' => 'cbd-other-hemp-derived-products',
'operation' => '!contains',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment here about this CDB check being faulty.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Added the same CBD logic used in #7025

@psealock psealock added needs: author feedback The issue/PR needs a response from any of the parties involved in the issue. and removed status: needs review labels May 25, 2021
@joshuatf
Copy link
Contributor Author

Also, is this just for India?

The pre-existing logic required PayPal to show when not in India and for the store to not be in the CBD industry.

@joshuatf joshuatf merged commit 7d12a3d into main May 25, 2021
@joshuatf joshuatf deleted the add/6855-paypal branch May 25, 2021 16:49
ObliviousHarmony pushed a commit to woocommerce/woocommerce that referenced this pull request Mar 18, 2022
…#7044)

* Add PayPal as default fallback gateway

* Filter out fields that aren't found
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs: author feedback The issue/PR needs a response from any of the parties involved in the issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants