mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #892 from woocommerce/PCP-913-ratepay-payment-instructions-added-to-non-pay-upon-invoice-orders
Ratepay payment instructions added to non Pay upon Invoice orders
This commit is contained in:
commit
aec2bde851
1 changed files with 4 additions and 0 deletions
|
@ -228,6 +228,10 @@ class PayUponInvoice {
|
|||
'ppcp_payment_capture_completed_webhook_handler',
|
||||
function ( WC_Order $wc_order, string $order_id ) {
|
||||
try {
|
||||
if ( $wc_order->get_payment_method() !== PayUponInvoiceGateway::ID ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$order = $this->pui_order_endpoint->order( $order_id );
|
||||
|
||||
$payment_instructions = array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue