mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Fix passing funding_source on block pages.
This commit is contained in:
parent
300e8f377c
commit
827bd2568d
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,7 @@ const PayPalComponent = ({
|
|||
window.ppcpContinuationFilled = true;
|
||||
}, [])
|
||||
|
||||
const createOrder = async () => {
|
||||
const createOrder = async (data, actions) => {
|
||||
try {
|
||||
const res = await fetch(config.scriptData.ajax.create_order.endpoint, {
|
||||
method: 'POST',
|
||||
|
@ -87,6 +87,7 @@ const PayPalComponent = ({
|
|||
bn_code: '',
|
||||
context: config.scriptData.context,
|
||||
payment_method: 'ppcp-gateway',
|
||||
funding_source: data.paymentSource,
|
||||
createaccount: false
|
||||
}),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue