mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
🚧 Begin to refactor the manual connection hook
This commit is contained in:
parent
5a1adc825c
commit
c5d7ce211a
3 changed files with 41 additions and 18 deletions
|
@ -92,11 +92,7 @@ const WelcomeForm = ( { setCompleted } ) => {
|
|||
|
||||
const handleConnect = async () => {
|
||||
try {
|
||||
const res = await connectManual(
|
||||
clientId,
|
||||
clientSecret,
|
||||
isSandboxMode
|
||||
);
|
||||
const res = await connectManual();
|
||||
if ( ! res.success ) {
|
||||
throw new Error( 'Request failed.' );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue