Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function refundCapturedPayment(string $capture_id, string $invoice_id, float $amount, string $note) |
||
42 | { |
||
43 | $this->apiEndPoint = "v2/payments/captures/{$capture_id}/refund"; |
||
44 | |||
45 | $this->options['json'] = [ |
||
46 | 'amount' => [ |
||
47 | 'value' => $amount, |
||
48 | 'currency_code' => $this->currency, |
||
49 | ], |
||
50 | 'invoice_id' => $invoice_id, |
||
51 | 'note_to_payer' => $note, |
||
52 | ]; |
||
53 | |||
54 | $this->verb = 'post'; |
||
55 | |||
56 | return $this->doPayPalRequest(); |
||
57 | } |
||
59 |