Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public function get_data() { |
||
43 | return array( |
||
44 | 'merchant_profile' => $this->merchant_profile, |
||
45 | 'source_currency' => $this->currency, |
||
46 | 'amount' => array( |
||
47 | 'currency' => $this->currency, |
||
48 | 'amount' => (string) $this->amount, |
||
49 | ), |
||
50 | 'payment_method' => array( |
||
51 | 'method' => $this->payment_method, |
||
52 | 'metadata' => array( |
||
53 | 'issuer' => $this->issuer, |
||
54 | ), |
||
55 | ), |
||
56 | 'metadata' => array( |
||
57 | 'pronamic_payment_id' => $this->payment_id, |
||
58 | ), |
||
59 | 'description' => $this->description, |
||
60 | 'redirect_url' => $this->redirect_url, |
||
61 | 'callback_url' => $this->callback_url, |
||
62 | 'locale' => $this->locale, |
||
63 | ); |
||
66 |