Commit graph

6945 commits

Author SHA1 Message Date
David Remer
d9b2818685 redirect when POST request with the error-get-parameter, so no error message will be shown later on 2020-10-02 12:28:40 +03:00
David Remer
951092558d remove the alert box in javascript when onboarding fails 2020-10-02 12:11:07 +03:00
David Remer
2a882487a7 use the plugins notice module to render the notice 2020-10-02 12:09:23 +03:00
David Remer
6683617d2b even without client_id we want to store the merchant_id 2020-10-02 12:08:32 +03:00
Matt Allan
5fa0c293c7
Merge pull request #44 from woocommerce/issue-30-support-refunds
Enable refunds through gateway
2020-10-02 14:49:47 +10:00
David Remer
8eb91d9f3f
Merge branch 'master' into issue-39-missing-spinning-wheel 2020-10-01 13:29:03 +03:00
David Remer
321a32420f print warning when client_id is not present while trying to store merchant_email 2020-10-01 12:07:11 +03:00
Rasmy Nguyen
ce870122f2
Merge pull request #8 from woocommerce/issue-4-disable-card
Prevents DCC payments of disabled card brands
2020-10-01 09:06:17 +00:00
David Remer
fa1c2e4246 take client_id and secret into account when deciding whether DCC is enabled 2020-10-01 11:37:36 +03:00
David Remer
0a3acae98e Merge branch 'master' into issue-22-sandbox-live-switch 2020-10-01 11:10:59 +03:00
David Remer
7521e63ef4 add semicolons 2020-10-01 10:00:21 +03:00
David Remer
91c1b67b7f reduce dcc availability to AU, US, UK, FR, IT, ES 2020-10-01 09:35:25 +03:00
David Remer
16413da06b
Merge pull request #51 from woocommerce/issue-49-disable-capturing-on-pending-payment-orders
Render the authorize action depending on the orders status
2020-10-01 09:14:04 +03:00
David Remer
53c4479db7 escape translateable string 2020-10-01 09:09:24 +03:00
David Remer
2a099b0634 simplify should_render logic 2020-10-01 09:00:09 +03:00
David Remer
81bedf3a80 move api urls to constants 2020-10-01 08:53:44 +03:00
David Remer
96fd3d6a2a enable gateways in the account -> order -> pay-now 2020-09-30 14:24:31 +03:00
David Remer
324ff49496 fix namespace on admin notices services.php 2020-09-30 08:51:51 +03:00
David Remer
e3055a69f0 render the authorize action depending on the orders status 2020-09-30 08:19:19 +03:00
David Remer
f7dde306fa check if payments are available in purchase unit 2020-09-30 07:57:13 +03:00
David Remer
8d1ed9ab24 codestyle 2020-09-29 14:03:38 +03:00
David Remer
14e31e3a0d make sure a order has captures before trying to refund them 2020-09-29 13:26:22 +03:00
David Remer
f236ad67ae check if refund reason exists 2020-09-29 13:21:01 +03:00
David Remer
2f474cc8ae add disconnect button 2020-09-29 12:48:02 +03:00
David Remer
15580be431 resolve merge conflict 2020-09-29 12:22:24 +03:00
Rasmy Nguyen
92276f9aa9
Merge pull request #46 from woocommerce/issue-34-disable-dcc-when-gateway-disabled
Disable both gateways when gateway setting 'enabled' is false
2020-09-29 07:46:02 +00:00
David Remer
8c6cb68b0c extract logic for disabling both gateways into a helper function 2020-09-29 10:17:59 +03:00
David Remer
7caa0d3dbf change target to apply block() 2020-09-29 10:11:27 +03:00
David Remer
82be811271 validate if credit card can be used in a country 2020-09-29 09:59:22 +03:00
David Remer
07f08a2d34 make sure sandbox and production data is present before setting client_id in settingslistener 2020-09-28 15:41:10 +03:00
David Remer
be331f9191 Merge branch 'master' of github.com:woocommerce/paypal-for-woocommerce 2020-09-28 14:55:05 +03:00
David Remer
44e72816b9 check if #ppcp-hide-dcc exists before attempting to remove it 2020-09-28 14:54:52 +03:00
David Remer
cc1365d5e9 disable gateways when gateway setting 'enabled' is false 2020-09-28 14:10:39 +03:00
David Remer
4322386c85 activate spinner when credit card button is clicked 2020-09-28 14:05:02 +03:00
David Remer
fed6df2578 map master_card to mastercard 2020-09-28 12:13:19 +03:00
David Remer
d6abaafadb enable refunds through gateway 2020-09-28 11:47:24 +03:00
Rasmy Nguyen
5951d796b0
Merge pull request #26 from woocommerce/issue-19-dcc-logos
Adds spacing to visible logos in checkout, and removes logos and related HTML from order confirmation page.
2020-09-28 06:33:30 +00:00
David Remer
091077d0ee codestyle 2020-09-25 12:34:39 +03:00
David Remer
5c590c9816 fix stylesheet 2020-09-25 12:27:42 +03:00
David Remer
e8a3b3d28c remove reset functionality from Settings container 2020-09-25 12:01:33 +03:00
David Remer
074a6ea139 remove the toggle for a credentials set once those are set. 2020-09-25 11:58:30 +03:00
David Remer
e5a569e0a0 seperate state detection by production/sandbox 2020-09-25 11:38:22 +03:00
David Remer
3733576dff fully onboarded needs all credentials being present 2020-09-25 11:24:05 +03:00
David Remer
2cb16565cd redirect when merchant_email has been stored from GET parameters. 2020-09-25 10:10:03 +03:00
David Remer
d7cd055a28 connect the referral endpoints always to the connect.woocommerce instance 2020-09-25 10:09:35 +03:00
David Remer
28863a2b4e make sure client_id and client_secret are properly stored. 2020-09-25 09:56:43 +03:00
David Remer
de4dc878ef store credentials also in the sandbox-prod-credential buckets when returning from paypal 2020-09-25 09:38:01 +03:00
David Remer
9327b19b7d add new fields for production and sandbox credentials.
Change toggle functionality. Load connect-to-sandbox-button and connect-to-production-button in case credentials are missing
2020-09-25 09:19:43 +03:00
David Remer
8d682afc6c add new setting fields to differentiate between live/sandbox credentials 2020-09-25 07:17:48 +03:00
David Remer
a00f6e3ae8 Assign CSS properties correctly to chrome 2020-09-24 14:15:59 +03:00