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