mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add final_capture=true
This commit is contained in:
parent
8c20c3ba28
commit
10c786fdb9
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,9 @@ class PaymentsEndpoint {
|
|||
$bearer = $this->bearer->bearer();
|
||||
$url = trailingslashit( $this->host ) . 'v2/payments/authorizations/' . $authorization_id . '/capture';
|
||||
|
||||
$data = array();
|
||||
$data = array(
|
||||
'final_capture' => true,
|
||||
);
|
||||
if ( $amount ) {
|
||||
$data['amount'] = $amount->to_array();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue