Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function captureAuthorizedPayment($authorization_id, $invoice_id, $amount, $note) |
||
43 | { |
||
44 | $this->apiEndPoint = "v2/payments/authorizations/{$authorization_id}/capture"; |
||
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 | 'final_capture' => true, |
||
55 | ]; |
||
56 | |||
57 | $this->verb = 'post'; |
||
1 ignored issue
–
show
|
|||
58 | |||
59 | return $this->doPayPalRequest(); |
||
60 | } |
||
112 |