@@ -40,16 +40,16 @@ |
||
| 40 | 40 | * |
| 41 | 41 | */ |
| 42 | 42 | private static $paypal_vars_table = [ |
| 43 | - ['name' => 'confirmed', 'default' => false], // Used to check if the payment is confirmed |
|
| 44 | - ['name' => 'exchange_rate', 'default' => ''], // Exchange rate used if a currency conversion occurred |
|
| 45 | - ['name' => 'mc_currency', 'default' => ''], // Currency |
|
| 46 | - ['name' => 'mc_gross', 'default' => 0.00], // Amt received (before fees) |
|
| 47 | - ['name' => 'mc_fee', 'default' => 0.00], // Amt of fees |
|
| 48 | - ['name' => 'payment_status', 'default' => ''], // Payment status. e.g.: 'Completed' |
|
| 43 | + ['name' => 'confirmed', 'default' => false], // Used to check if the payment is confirmed |
|
| 44 | + ['name' => 'exchange_rate', 'default' => ''], // Exchange rate used if a currency conversion occurred |
|
| 45 | + ['name' => 'mc_currency', 'default' => ''], // Currency |
|
| 46 | + ['name' => 'mc_gross', 'default' => 0.00], // Amt received (before fees) |
|
| 47 | + ['name' => 'mc_fee', 'default' => 0.00], // Amt of fees |
|
| 48 | + ['name' => 'payment_status', 'default' => ''], // Payment status. e.g.: 'Completed' |
|
| 49 | 49 | ['name' => 'settle_amount', 'default' => 0.00], // Amt received after currency conversion (before fees) |
| 50 | 50 | ['name' => 'settle_currency', 'default' => ''], // Currency of 'settle_amount' |
| 51 | - ['name' => 'test_ipn', 'default' => false], // Used when transaction come from Sandbox platform |
|
| 52 | - ['name' => 'txn_type', 'default' => ''], // Transaction type - Should be: 'web_accept' |
|
| 51 | + ['name' => 'test_ipn', 'default' => false], // Used when transaction come from Sandbox platform |
|
| 52 | + ['name' => 'txn_type', 'default' => ''], // Transaction type - Should be: 'web_accept' |
|
| 53 | 53 | [// Primary merchant e-mail address |
| 54 | 54 | 'name' => 'business', |
| 55 | 55 | 'default' => '', |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | $lang = array_merge($lang, [ |
| 78 | 78 | 'PPDE_DONORS' => [ |
| 79 | - 1 => '%d donateur', // 1 |
|
| 79 | + 1 => '%d donateur', // 1 |
|
| 80 | 80 | 2 => '%d donateurs', // 2+ |
| 81 | 81 | ], |
| 82 | 82 | ]); |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | $lang = array_merge($lang, [ |
| 78 | 78 | 'PPDE_DONORS' => [ |
| 79 | - 1 => '%d donor', // 1 |
|
| 79 | + 1 => '%d donor', // 1 |
|
| 80 | 80 | 2 => '%d donors', // 2+ |
| 81 | 81 | ], |
| 82 | 82 | ]); |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | */ |
| 106 | 106 | private function add_predefined_lang_vars(): void |
| 107 | 107 | { |
| 108 | - array_walk($this->dp_vars, function (&$value) { |
|
| 108 | + array_walk($this->dp_vars, function(&$value) { |
|
| 109 | 109 | $value['name'] = $this->language->lang('PPDE_DP_' . trim($value['var'], '{}')); |
| 110 | 110 | }); |
| 111 | 111 | } |