File tree 7 files changed +33
-80
lines changed
7 files changed +33
-80
lines changed Original file line number Diff line number Diff line change @@ -4,30 +4,32 @@ This is a feature plugin for accepting payments via a WooCommerce-branded paymen
4
4
5
5
## Dependencies
6
6
7
- - WooCommerce
7
+ - WooCommerce
8
8
9
9
## Development
10
10
11
11
### Install dependencies & build
12
12
13
- - ` npm install `
14
- - ` composer install `
15
- - ` npm run build:client `
13
+ - ` npm install `
14
+ - ` composer install `
15
+ - ` npm run build:client ` , or if you're developing the client you can have it auto-update when changes are made: ` npm start `
16
16
17
17
## Setup
18
18
19
19
If you're using the Docker environment see setup instructions here:
20
20
https://github.com/Automattic/woocommerce-payments/blob/trunk/docker/README.md
21
21
22
22
Install the following plugins:
23
- - WooCommerce
23
+
24
+ - WooCommerce
25
+
24
26
## Test account setup
25
27
26
28
For setting up a test account follow [ these instructions] ( https://docs.woocommerce.com/document/payments/testing/dev-mode/ ) .
27
29
28
30
You will need a externally accessible URL to set up the plugin. You can use ngrok for this.
29
31
30
- ``` ngrok http 8082 `` `
32
+ ` ngrok http 8082 `
31
33
32
34
See: https://github.com/Automattic/woocommerce-payments/blob/trunk/CONTRIBUTING.md (possibly move contents here for visibility sake)
33
35
Original file line number Diff line number Diff line change 3
3
* External dependencies
4
4
*/
5
5
import React from 'react' ;
6
- import { Card } from '@woocommerce/components' ;
7
- import { Button , Notice } from '@wordpress/components' ;
6
+ import { Button , Card , CardBody , Notice } from '@wordpress/components' ;
8
7
import { render , useState , useEffect } from '@wordpress/element' ;
9
8
10
9
/**
@@ -215,18 +214,22 @@ const ConnectAccountPage = () => {
215
214
< Page isNarrow className = "connect-account" >
216
215
< ConnectPageError />
217
216
< Card className = "connect-account__card" >
218
- < Banner style = "account-page" />
219
- < div className = "content" >
220
- { wcpaySettings . onBoardingDisabled ? (
221
- < ConnectPageOnboardingDisabled />
222
- ) : (
223
- < ConnectPageOnboarding />
224
- ) }
225
- </ div >
217
+ < CardBody >
218
+ < Banner style = "account-page" />
219
+ < div className = "content" >
220
+ { wcpaySettings . onBoardingDisabled ? (
221
+ < ConnectPageOnboardingDisabled />
222
+ ) : (
223
+ < ConnectPageOnboarding />
224
+ ) }
225
+ </ div >
226
+ </ CardBody >
226
227
</ Card >
227
228
{ ! wcpaySettings . onBoardingDisabled && (
228
229
< Card className = "connect-account__steps" >
229
- < ConnectPageOnboardingSteps />
230
+ < CardBody >
231
+ < ConnectPageOnboardingSteps />
232
+ </ CardBody >
230
233
</ Card >
231
234
) }
232
235
</ Page >
Original file line number Diff line number Diff line change 91
91
}
92
92
93
93
.connect-account__card {
94
- .woocommerce -card__body {
94
+ > .components -card__body {
95
95
padding : 0 ;
96
96
97
97
.content {
116
116
}
117
117
118
118
.connect-account__steps {
119
- .woocommerce -card__body {
119
+ .components -card__body {
120
120
padding : 24px ;
121
121
}
122
122
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ exports[`ConnectAccountPage should render correctly 1`] = `
9
9
class = " connect-account woocommerce-payments-page is-narrow"
10
10
>
11
11
<div
12
- class = " woocommerce -card connect-account__card"
12
+ class = " components -card is-size-medium connect-account__card css-1xs3c37-CardUI e1q7k77g0 "
13
13
>
14
14
<div
15
- class = " woocommerce -card__body"
15
+ class = " components -card__body is-size-medium css-xmjzce-BodyUI e1q7k77g3 "
16
16
>
17
17
<div
18
18
class = " components-card is-size-large woocommerce-payments-banner account-page css-1xs3c37-CardUI e1q7k77g0"
@@ -807,10 +807,10 @@ exports[`ConnectAccountPage should render correctly 1`] = `
807
807
</div >
808
808
</div >
809
809
<div
810
- class = " woocommerce -card connect-account__steps"
810
+ class = " components -card is-size-medium connect-account__steps css-1xs3c37-CardUI e1q7k77g0 "
811
811
>
812
812
<div
813
- class = " woocommerce -card__body"
813
+ class = " components -card__body is-size-medium css-xmjzce-BodyUI e1q7k77g3 "
814
814
>
815
815
<h2 >
816
816
You’re only steps away from getting paid
@@ -880,10 +880,10 @@ exports[`ConnectAccountPage should render correctly when on-boarding disabled 1`
880
880
class = " connect-account woocommerce-payments-page is-narrow"
881
881
>
882
882
<div
883
- class = " woocommerce -card connect-account__card"
883
+ class = " components -card is-size-medium connect-account__card css-1xs3c37-CardUI e1q7k77g0 "
884
884
>
885
885
<div
886
- class = " woocommerce -card__body"
886
+ class = " components -card__body is-size-medium css-xmjzce-BodyUI e1q7k77g3 "
887
887
>
888
888
<div
889
889
class = " components-card is-size-large woocommerce-payments-banner account-page css-1xs3c37-CardUI e1q7k77g0"
Original file line number Diff line number Diff line change 1
- /** @format **/
2
-
3
1
/**
4
2
* External dependencies
5
3
*/
6
4
import { __ } from '@wordpress/i18n' ;
7
- import { Card } from '@woocommerce /components' ;
5
+ import { Card , CardBody } from '@wordpress /components' ;
8
6
9
7
/**
10
8
* Internal dependencies
11
9
*/
12
10
import { useCharge } from '../data' ;
13
11
import PaymentDetailsSummary from './summary' ;
14
12
import PaymentDetailsTimeline from './timeline' ;
15
- import PaymentDetailsPayment from './payment' ;
16
13
import PaymentDetailsPaymentMethod from './payment-method' ;
17
- import PaymentDetailsSession from './session' ;
18
14
import Page from 'components/page' ;
19
15
import { TestModeNotice , topics } from 'components/test-mode-notice' ;
20
16
@@ -29,12 +25,12 @@ const PaymentDetails = ( props ) => {
29
25
< Page maxWidth = { 1032 } className = "wcpay-payment-details" >
30
26
{ testModeNotice }
31
27
< Card >
32
- < div >
28
+ < CardBody >
33
29
{ __ (
34
30
'Payment details not loaded' ,
35
31
'woocommerce-payments'
36
32
) }
37
- </ div >
33
+ </ CardBody >
38
34
</ Card >
39
35
</ Page >
40
36
) ;
@@ -47,18 +43,10 @@ const PaymentDetails = ( props ) => {
47
43
{ wcpaySettings . featureFlags . paymentTimeline && (
48
44
< PaymentDetailsTimeline chargeId = { chargeId } />
49
45
) }
50
- {
51
- // Hidden for the beta.
52
- false && < PaymentDetailsPayment charge = { charge } />
53
- }
54
46
< PaymentDetailsPaymentMethod
55
47
charge = { charge }
56
48
isLoading = { isLoading }
57
49
/>
58
- {
59
- // Hidden for the beta.
60
- false && < PaymentDetailsSession charge = { charge } />
61
- }
62
50
</ Page >
63
51
) ;
64
52
} ;
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments