Commit graph

689 commits

Author SHA1 Message Date
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
8a3ae89d40 codestyle fix 2020-09-24 13:43:28 +03:00
David Remer
b41e760df6 fix button toggle, which was prevented from the general checkbox change handler 2020-09-24 13:40:43 +03:00
David Remer
6d8b6bf693 prevent 'do you want to leave'-alert when redirect occurs through paypal module. 2020-09-24 12:50:35 +03:00
David Remer
3281043bc2 do not show enable button on start screen 2020-09-24 12:49:57 +03:00
David Remer
16ad8c9cd1 resolve merge conflict 2020-09-24 10:54:28 +03:00
David Remer
5907d03ced move merchant email into toggle 2020-09-24 10:46:31 +03:00
David Remer
2679afd819 keep email input always editable without the need of reset 2020-09-24 10:44:39 +03:00
David Remer
1b3061f59a save merchant email when merchant comes back from onboarding 2020-09-24 10:42:38 +03:00
David Remer
9f45ca618f remove some setting fields from start screen 2020-09-24 10:42:20 +03:00
David Remer
09a5f0e466 enable loginseller endpoint to switch between sandbox and live 2020-09-24 10:29:09 +03:00
David Remer
6f870ec7a5 render sandbox and live connect button and toggle between those depending on sandbox checkbox 2020-09-24 09:58:28 +03:00
David Remer
b70819847b load onboarding script on start screen 2020-09-24 09:57:55 +03:00
David Remer
920b428ac7 show buttons on start screen 2020-09-24 09:50:06 +03:00
Rasmy Nguyen
b13476de38
Merge pull request #31 from woocommerce/issue-12-invoice-prefix
rename installation prefix to invoice prefix
2020-09-24 06:43:34 +00:00
David Remer
7fd2712aa4 do not send the email when creating referreldata for link 2020-09-24 09:38:20 +03:00
Rasmy Nguyen
d1f1215dc9
Merge pull request #25 from woocommerce/issue-23-hide-credentials
Enable merchant to hide credentials after showing them
2020-09-24 06:24:21 +00:00
David Remer
25fa11b0f8 extract sandbox host into its own container key.
With #21, we do not know anymore if we are currently in sandbox or production mode. We seperate the two hosts, so we can later instantiate different Api endpoint objects with different hosts. This enables us to call two different hosts in the same PHP process. In the current scope, just seperating the hosts (and not secrets/keys) should be sufficient.
2020-09-24 08:41:08 +03:00
David Remer
6ee4ca0b2a rename installation prefix to invoice prefix 2020-09-24 08:02:32 +03:00
David Remer
b01f03663e add heading for checkout settings 2020-09-24 07:59:01 +03:00
Rasmy Nguyen
709e54d3ed
Merge pull request #9 from woocommerce/issue-4-style-iframe
Applies the styles of the original DCC card number input field to the DCC input fields inside the PayPal iFrame
2020-09-24 03:18:28 +00:00
David Remer
de28575d59 use display:unset to avoid the underline disappearing 2020-09-23 12:28:44 +03:00
Matt Allan
92ea882734
Merge pull request #29 from woocommerce/issue-27-fix-wrong-addrss-mapping
fix wrong address mapping on checkout
2020-09-23 16:05:49 +10:00
Rasmy Nguyen
05d79f2cec
Merge pull request #24 from woocommerce/issue-10-wrong-description
Fixes description text for all Credit Messaging ratio settings
2020-09-23 02:00:14 +00:00
David Remer
a1b41b9bbb fix wrong address mapping on checkout 2020-09-21 09:33:52 +03:00
David Remer
05d3f267b3 enable merchant to hide credentials after showing them 2020-09-18 13:06:48 +03:00
David Remer
3850b8be24 change description of credit messaging ratio setting 2020-09-18 12:55:47 +03:00
David Remer
5fc5e38d33 add styles to dcc input fields 2020-09-18 12:22:10 +03:00
David Remer
70a1da4671 resolve merge conflict 2020-09-18 11:58:57 +03:00
David Remer
49a3921a02 add root file to phpcs 2020-09-18 11:58:10 +03:00
Jorge A. Torres
1dc9a05452
Merge pull request #6 from woocommerce/phpcs-fixes
Fix remaining coding standards issues
2020-09-17 18:07:20 -03:00
Jorge A. Torres
23f7219a5d Minor fix in Travis script 2020-09-17 18:05:41 -03:00
Jorge A. Torres
19e11d4cf7 Fix remaining coding standards issues 2020-09-17 17:57:00 -03:00
Jorge A. Torres
96556d5f55
Merge pull request #5 from woocommerce/add-travis-support
Add travis support
2020-09-17 17:54:47 -03:00
Jorge A. Torres
f2b4cc6eff Add Travis integration 2020-09-17 17:53:14 -03:00
Jorge A. Torres
6390b52833 Configure phpcs 2020-09-17 16:53:17 -03:00
Jorge A. Torres
5e209cbb2c
Merge pull request #2 from woocommerce/issue-1
Issue 1
2020-09-17 16:13:53 -03:00
David Remer
b8084274ee fix dhii dependencies 2020-09-16 10:33:22 +03:00
David Remer
ddd4f5ba09 downgrade dhii/module-interface to 0.1 2020-09-16 10:18:45 +03:00
David Remer
c09e314baa call partners endpoint when rendering the dcc settings to check whether the pp account is able to process dcc.
In order to do so, it was also necessary to store the merchant id during onboarding. includes a bugfix where the cache invalidation did not work because the cache object was constructed with the wrong prefix key.
2020-09-16 10:00:28 +03:00
David Remer
22c7e3975f remove description from dcc settings as no description is shown in the frontend. 2020-09-14 15:07:48 +03:00
David Remer
084eb2a908 relocate dcc fields to gateway description, use \WC_Payment_Gateway_CC, reutilize theme styles for dcc fields as much as possible 2020-09-14 14:17:39 +03:00
David Remer
e4b6a412ea hide paypal credit on checkout until isEligible 2020-09-14 11:05:14 +03:00