mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
add error handler to approve handler for paynow
This commit is contained in:
parent
ec680a7191
commit
bfa148b753
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
const onApprove = (context) => {
|
||||
const onApprove = (context, errorHandler) => {
|
||||
return (data, actions) => {
|
||||
return fetch(context.config.ajax.approve_order.endpoint, {
|
||||
method: 'POST',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue