You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are migrating from woocommerce-gateway-paypal-express-checkout. At checkout, we authorize then capture after an order has been fulfilled. Before sending an order to the fulfillment system we check the status of the authorization of a transaction. The way we do this in the Paypal Express Checkout plugin is by checking the order meta key _paypal_status and getting the transaction details using the plugin's internal gateway client. If the transaction is pending for any reason other than "authorization" we cancel the order.
With the woocommerce-paypal-payments plugin, I do not see a _paypal_status meta key on the order. However, it looks like the function order_is_approved() will provide what I need but since it is a private function, I'm unable to call it.
To Reproduce
$payment_gateways = new WC_Payment_Gateways();
$ppcp_gateway = $payment_gateways->get_available_payment_gateways()['ppcp-gateway'];
$ppcp_gateway->order_processor;
Description
We are migrating from
woocommerce-gateway-paypal-express-checkout
. At checkout, we authorize then capture after an order has been fulfilled. Before sending an order to the fulfillment system we check the status of the authorization of a transaction. The way we do this in the Paypal Express Checkout plugin is by checking the order meta key_paypal_status
and getting the transaction details using the plugin's internal gateway client. If the transaction is pending for any reason other than "authorization" we cancel the order.Excerpt of how we do this today:
With the
woocommerce-paypal-payments
plugin, I do not see a_paypal_status
meta key on the order. However, it looks like the function order_is_approved() will provide what I need but since it is a private function, I'm unable to call it.To Reproduce
Expected Behavior
Order approval status is returned.
Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: