mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Migrate the PayPal buttons inside of the Express Checkout in the editor to @paypal/react-paypal-js with a unique namespace to avoid conflicts with the Pay Later messaging block
This commit is contained in:
parent
8b4594ad92
commit
40e8aa2874
4 changed files with 62 additions and 5 deletions
|
@ -90,13 +90,12 @@ export default function Edit( { attributes, clientId, setAttributes } ) {
|
|||
return (<div {...props}><Spinner/></div>)
|
||||
}
|
||||
|
||||
const urlParams = scriptParams === false ? {
|
||||
const urlParams = {
|
||||
clientId: 'test',
|
||||
components: 'messages',
|
||||
} : {
|
||||
...scriptParams.url_params,
|
||||
...{
|
||||
components: 'messages',
|
||||
dataNamespace: 'ppcp-block-editor-paylater-message',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue