Ensure item taxes for pui payment (WIP)

This commit is contained in:
dinamiko 2022-08-29 15:18:40 +02:00
parent f1f3f9dcc3
commit 0018227d88
2 changed files with 73 additions and 4 deletions

View file

@ -226,7 +226,7 @@ class PayUponInvoiceGateway extends WC_Payment_Gateway {
$payment_source = $this->payment_source_factory->from_wc_order( $wc_order, $birth_date );
try {
$order = $this->order_endpoint->create( array( $purchase_unit ), $payment_source );
$order = $this->order_endpoint->create( array( $purchase_unit ), $payment_source, $wc_order );
$this->add_paypal_meta( $wc_order, $order, $this->environment );
as_schedule_single_action(