@@ -60,7 +60,7 @@ |
||
60 | 60 | $classes = array( 'nav-tab' ); |
61 | 61 | |
62 | 62 | if ( $current_tab === $tab ) { |
63 | - $classes[] = 'nav-tab-active'; |
|
63 | + $classes[ ] = 'nav-tab-active'; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | $url = add_query_arg( 'tab', $tab ); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | sprintf( |
67 | 67 | /* translators: %s: formatted amount */ |
68 | 68 | __( 'Transaction with <code>amount</code> = %s:', 'pronamic_ideal' ), |
69 | - esc_html( IDeal::format_amount( $data['amount'] ) ) |
|
69 | + esc_html( IDeal::format_amount( $data[ 'amount' ] ) ) |
|
70 | 70 | ), |
71 | 71 | array( |
72 | 72 | 'code' => array(), |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | ?> |
77 | 77 | </td> |
78 | 78 | <td> |
79 | - <?php echo esc_html( $data['result'] ); ?> |
|
79 | + <?php echo esc_html( $data[ 'result' ] ); ?> |
|
80 | 80 | </td> |
81 | 81 | </tr> |
82 | 82 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | <?php $eshop_metabox_plugin->show_img( 'pronamic_ideal' ); ?> |
16 | 16 | |
17 | 17 | <p class="cbox"> |
18 | - <input id="eshop_method_pronamic_ideal" name="eshop_method[]" type="checkbox" value="pronamic_ideal" <?php checked( in_array( 'pronamic_ideal', (array) $eshopoptions['method'], true ) ); ?> /> |
|
18 | + <input id="eshop_method_pronamic_ideal" name="eshop_method[]" type="checkbox" value="pronamic_ideal" <?php checked( in_array( 'pronamic_ideal', (array) $eshopoptions[ 'method' ], true ) ); ?> /> |
|
19 | 19 | |
20 | 20 | <label for="eshop_method_pronamic_ideal" class="eshopmethod"> |
21 | 21 | <?php esc_html_e( 'Accept payment by iDEAL', 'pronamic_ideal' ); ?> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | \Pronamic\WordPress\Pay\Admin\AdminModule::dropdown_configs( array( |
32 | 32 | 'name' => 'eshop_pronamic_ideal_config_id', |
33 | - 'selected' => @$eshopoptions['pronamic_ideal']['config_id'], |
|
33 | + 'selected' => @$eshopoptions[ 'pronamic_ideal' ][ 'config_id' ], |
|
34 | 34 | ) ); |
35 | 35 | |
36 | 36 | ?> |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $results = $wpdb->get_results( $db_query ); // WPCS: unprepared SQL ok. |
86 | 86 | |
87 | 87 | foreach ( $results as $result ) { |
88 | - $payments[] = new Payment( $result->post_id ); |
|
88 | + $payments[ ] = new Payment( $result->post_id ); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | return $payments; |
@@ -167,13 +167,13 @@ discard block |
||
167 | 167 | |
168 | 168 | foreach ( $pronamic_ideal->gateway_integrations as $integration ) { |
169 | 169 | if ( isset( $pronamic_pay_providers[ $integration->provider ] ) ) { |
170 | - $provider =& $pronamic_pay_providers[ $integration->provider ]; |
|
170 | + $provider = & $pronamic_pay_providers[ $integration->provider ]; |
|
171 | 171 | |
172 | - if ( ! isset( $provider['integrations'] ) ) { |
|
173 | - $provider['integrations'] = array(); |
|
172 | + if ( ! isset( $provider[ 'integrations' ] ) ) { |
|
173 | + $provider[ 'integrations' ] = array(); |
|
174 | 174 | } |
175 | 175 | |
176 | - $provider['integrations'][] = $integration; |
|
176 | + $provider[ 'integrations' ][ ] = $integration; |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 | } |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | if ( false === $separator ) { |
229 | 229 | // WordPress locale number format was introduced in WordPress version 2.3. |
230 | 230 | // @see https://github.com/WordPress/WordPress/blob/2.3/wp-includes/locale.php#L90-L100. |
231 | - $separator = $wp_locale->number_format['thousands_sep']; |
|
231 | + $separator = $wp_locale->number_format[ 'thousands_sep' ]; |
|
232 | 232 | } |
233 | 233 | |
234 | 234 | return $separator; |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | if ( false === $separator ) { |
250 | 250 | // WordPress locale number format was introduced in WordPress version 2.3. |
251 | 251 | // @see https://github.com/WordPress/WordPress/blob/2.3/wp-includes/locale.php#L90-L100. |
252 | - $separator = $wp_locale->number_format['decimal_point']; |
|
252 | + $separator = $wp_locale->number_format[ 'decimal_point' ]; |
|
253 | 253 | } |
254 | 254 | |
255 | 255 | return $separator ? $separator : '.'; |
@@ -130,76 +130,76 @@ discard block |
||
130 | 130 | |
131 | 131 | $meta = array(); |
132 | 132 | |
133 | - $meta['legacy_id'] = $config->id; |
|
134 | - $meta['id'] = $config->variant_id; |
|
135 | - $meta['mode'] = $config->mode; |
|
133 | + $meta[ 'legacy_id' ] = $config->id; |
|
134 | + $meta[ 'id' ] = $config->variant_id; |
|
135 | + $meta[ 'mode' ] = $config->mode; |
|
136 | 136 | |
137 | 137 | // iDEAL |
138 | - $meta['ideal_merchant_id'] = $config->merchant_id; |
|
139 | - $meta['ideal_sub_id'] = $config->sub_id; |
|
138 | + $meta[ 'ideal_merchant_id' ] = $config->merchant_id; |
|
139 | + $meta[ 'ideal_sub_id' ] = $config->sub_id; |
|
140 | 140 | |
141 | 141 | // iDEAL Basic |
142 | - $meta['ideal_hash_key'] = $config->hash_key; |
|
142 | + $meta[ 'ideal_hash_key' ] = $config->hash_key; |
|
143 | 143 | |
144 | 144 | // iDEAL Advanced |
145 | - $meta['ideal_private_key'] = $config->private_key; |
|
146 | - $meta['ideal_private_key_password'] = $config->private_key_password; |
|
147 | - $meta['ideal_private_certificate'] = $config->private_certificate; |
|
145 | + $meta[ 'ideal_private_key' ] = $config->private_key; |
|
146 | + $meta[ 'ideal_private_key_password' ] = $config->private_key_password; |
|
147 | + $meta[ 'ideal_private_certificate' ] = $config->private_certificate; |
|
148 | 148 | |
149 | 149 | // OmniKassa |
150 | 150 | if ( 'rabobank-omnikassa' === $config->variant_id ) { |
151 | - $meta['omnikassa_merchant_id'] = $config->merchant_id; |
|
152 | - $meta['omnikassa_secret_key'] = $config->hash_key; |
|
151 | + $meta[ 'omnikassa_merchant_id' ] = $config->merchant_id; |
|
152 | + $meta[ 'omnikassa_secret_key' ] = $config->hash_key; |
|
153 | 153 | |
154 | 154 | $key_version = @$config_meta->keyVersion; |
155 | 155 | // In Pronamic iDEAL v1.0 we stored the key version in the iDEAL sub ID |
156 | 156 | $key_version = empty( $key_version ) ? $config->sub_id : $key_version; |
157 | 157 | |
158 | - $meta['omnikassa_key_version'] = $key_version; |
|
158 | + $meta[ 'omnikassa_key_version' ] = $key_version; |
|
159 | 159 | |
160 | - unset( $meta['ideal_merchant_id'] ); |
|
161 | - unset( $meta['ideal_hash_key'] ); |
|
160 | + unset( $meta[ 'ideal_merchant_id' ] ); |
|
161 | + unset( $meta[ 'ideal_hash_key' ] ); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | // Buckaroo |
165 | - $meta['buckaroo_website_key'] = @$config_meta->buckarooWebsiteKey; |
|
166 | - $meta['buckaroo_secret_key'] = @$config_meta->buckarooSecretKey; |
|
165 | + $meta[ 'buckaroo_website_key' ] = @$config_meta->buckarooWebsiteKey; |
|
166 | + $meta[ 'buckaroo_secret_key' ] = @$config_meta->buckarooSecretKey; |
|
167 | 167 | |
168 | 168 | // Icepay |
169 | - $meta['icepay_merchant_id'] = @$config_meta->icepayMerchantId; |
|
170 | - $meta['icepay_secret_code'] = @$config_meta->icepaySecretCode; |
|
169 | + $meta[ 'icepay_merchant_id' ] = @$config_meta->icepayMerchantId; |
|
170 | + $meta[ 'icepay_secret_code' ] = @$config_meta->icepaySecretCode; |
|
171 | 171 | |
172 | 172 | // Mollie |
173 | - $meta['mollie_partner_id'] = @$config_meta->molliePartnerId; |
|
174 | - $meta['mollie_profile_key'] = @$config_meta->mollieProfileKey; |
|
173 | + $meta[ 'mollie_partner_id' ] = @$config_meta->molliePartnerId; |
|
174 | + $meta[ 'mollie_profile_key' ] = @$config_meta->mollieProfileKey; |
|
175 | 175 | |
176 | 176 | // Sisow |
177 | - $meta['sisow_merchant_id'] = @$config_meta->sisowMerchantId; |
|
178 | - $meta['sisow_merchant_key'] = @$config_meta->sisowMerchantKey; |
|
177 | + $meta[ 'sisow_merchant_id' ] = @$config_meta->sisowMerchantId; |
|
178 | + $meta[ 'sisow_merchant_key' ] = @$config_meta->sisowMerchantKey; |
|
179 | 179 | |
180 | 180 | // TargetPay |
181 | - $meta['targetpay_layout_code'] = @$config_meta->targetPayLayoutCode; |
|
181 | + $meta[ 'targetpay_layout_code' ] = @$config_meta->targetPayLayoutCode; |
|
182 | 182 | |
183 | 183 | // Qantani |
184 | - $meta['qantani_merchant_id'] = @$config_meta->qantani_merchant_id; |
|
185 | - $meta['qantani_merchant_key'] = @$config_meta->qantani_merchant_key; |
|
186 | - $meta['qantani_merchant_secret'] = @$config_meta->qantani_merchant_secret; |
|
184 | + $meta[ 'qantani_merchant_id' ] = @$config_meta->qantani_merchant_id; |
|
185 | + $meta[ 'qantani_merchant_key' ] = @$config_meta->qantani_merchant_key; |
|
186 | + $meta[ 'qantani_merchant_secret' ] = @$config_meta->qantani_merchant_secret; |
|
187 | 187 | |
188 | 188 | // Ogone |
189 | - $meta['ogone_psp_id'] = @$config_meta->pspId; |
|
190 | - $meta['ogone_sha_in_pass_phrase'] = @$config_meta->shaInPassPhrase; |
|
191 | - $meta['ogone_sha_out_pass_phrase'] = @$config_meta->shaOutPassPhrase; |
|
192 | - $meta['ogone_user_id'] = @$config_meta->ogone_user_id; |
|
193 | - $meta['ogone_password'] = @$config_meta->ogone_password; |
|
189 | + $meta[ 'ogone_psp_id' ] = @$config_meta->pspId; |
|
190 | + $meta[ 'ogone_sha_in_pass_phrase' ] = @$config_meta->shaInPassPhrase; |
|
191 | + $meta[ 'ogone_sha_out_pass_phrase' ] = @$config_meta->shaOutPassPhrase; |
|
192 | + $meta[ 'ogone_user_id' ] = @$config_meta->ogone_user_id; |
|
193 | + $meta[ 'ogone_password' ] = @$config_meta->ogone_password; |
|
194 | 194 | |
195 | 195 | // Other |
196 | - $meta['country'] = @$config_meta->country; |
|
197 | - $meta['state_or_province'] = @$config_meta->stateOrProvince; |
|
198 | - $meta['locality'] = @$config_meta->locality; |
|
199 | - $meta['organization'] = @$config_meta->organization; |
|
200 | - $meta['organization_unit'] = @$config_meta->organizationUnit; |
|
201 | - $meta['common_name'] = @$config_meta->commonName; |
|
202 | - $meta['email'] = @$config_meta->eMailAddress; |
|
196 | + $meta[ 'country' ] = @$config_meta->country; |
|
197 | + $meta[ 'state_or_province' ] = @$config_meta->stateOrProvince; |
|
198 | + $meta[ 'locality' ] = @$config_meta->locality; |
|
199 | + $meta[ 'organization' ] = @$config_meta->organization; |
|
200 | + $meta[ 'organization_unit' ] = @$config_meta->organizationUnit; |
|
201 | + $meta[ 'common_name' ] = @$config_meta->commonName; |
|
202 | + $meta[ 'email' ] = @$config_meta->eMailAddress; |
|
203 | 203 | |
204 | 204 | foreach ( $meta as $key => $value ) { |
205 | 205 | if ( ! empty( $value ) ) { |
@@ -300,26 +300,26 @@ discard block |
||
300 | 300 | |
301 | 301 | $feed_meta = json_decode( $feed->meta, true ); |
302 | 302 | |
303 | - $meta['form_id'] = $feed->form_id; |
|
304 | - $meta['config_id'] = @$config_ids_map[ $feed->configuration_id ]; |
|
305 | - $meta['is_active'] = $feed->is_active; |
|
306 | - $meta['transaction_description'] = @$feed_meta['transactionDescription']; |
|
307 | - $meta['delay_notification_ids'] = @$feed_meta['delayNotificationIds']; |
|
308 | - $meta['delay_admin_notification'] = @$feed_meta['delayAdminNotification']; |
|
309 | - $meta['delay_user_notification'] = @$feed_meta['delayUserNotification']; |
|
310 | - $meta['delay_post_creation'] = @$feed_meta['delayPostCreation']; |
|
311 | - $meta['condition_enabled'] = @$feed_meta['conditionEnabled']; |
|
312 | - $meta['condition_field_id'] = @$feed_meta['conditionFieldId']; |
|
313 | - $meta['condition_operator'] = @$feed_meta['conditionOperator']; |
|
314 | - $meta['condition_value'] = @$feed_meta['conditionValue']; |
|
315 | - $meta['user_role_field_id'] = @$feed_meta['userRoleFieldId']; |
|
316 | - $meta['fields'] = @$feed_meta['fields']; |
|
317 | - $meta['links'] = @$feed_meta['links']; |
|
318 | - |
|
319 | - if ( is_array( $meta['links'] ) ) { |
|
320 | - foreach ( $meta['links'] as &$link ) { |
|
321 | - if ( isset( $link['pageId'] ) ) { |
|
322 | - $link['page_id'] = $link['pageId']; |
|
303 | + $meta[ 'form_id' ] = $feed->form_id; |
|
304 | + $meta[ 'config_id' ] = @$config_ids_map[ $feed->configuration_id ]; |
|
305 | + $meta[ 'is_active' ] = $feed->is_active; |
|
306 | + $meta[ 'transaction_description' ] = @$feed_meta[ 'transactionDescription' ]; |
|
307 | + $meta[ 'delay_notification_ids' ] = @$feed_meta[ 'delayNotificationIds' ]; |
|
308 | + $meta[ 'delay_admin_notification' ] = @$feed_meta[ 'delayAdminNotification' ]; |
|
309 | + $meta[ 'delay_user_notification' ] = @$feed_meta[ 'delayUserNotification' ]; |
|
310 | + $meta[ 'delay_post_creation' ] = @$feed_meta[ 'delayPostCreation' ]; |
|
311 | + $meta[ 'condition_enabled' ] = @$feed_meta[ 'conditionEnabled' ]; |
|
312 | + $meta[ 'condition_field_id' ] = @$feed_meta[ 'conditionFieldId' ]; |
|
313 | + $meta[ 'condition_operator' ] = @$feed_meta[ 'conditionOperator' ]; |
|
314 | + $meta[ 'condition_value' ] = @$feed_meta[ 'conditionValue' ]; |
|
315 | + $meta[ 'user_role_field_id' ] = @$feed_meta[ 'userRoleFieldId' ]; |
|
316 | + $meta[ 'fields' ] = @$feed_meta[ 'fields' ]; |
|
317 | + $meta[ 'links' ] = @$feed_meta[ 'links' ]; |
|
318 | + |
|
319 | + if ( is_array( $meta[ 'links' ] ) ) { |
|
320 | + foreach ( $meta[ 'links' ] as &$link ) { |
|
321 | + if ( isset( $link[ 'pageId' ] ) ) { |
|
322 | + $link[ 'page_id' ] = $link[ 'pageId' ]; |
|
323 | 323 | } |
324 | 324 | } |
325 | 325 | } |
@@ -497,10 +497,10 @@ discard block |
||
497 | 497 | if ( $row ) { |
498 | 498 | $settings = maybe_unserialize( $row->value ); |
499 | 499 | |
500 | - if ( is_array( $settings ) && isset( $settings['pronamic_shopp_ideal_configuration'] ) ) { |
|
501 | - $value = $settings['pronamic_shopp_ideal_configuration']; |
|
500 | + if ( is_array( $settings ) && isset( $settings[ 'pronamic_shopp_ideal_configuration' ] ) ) { |
|
501 | + $value = $settings[ 'pronamic_shopp_ideal_configuration' ]; |
|
502 | 502 | |
503 | - $settings['config_id'] = @$config_ids_map[ $value ]; |
|
503 | + $settings[ 'config_id' ] = @$config_ids_map[ $value ]; |
|
504 | 504 | |
505 | 505 | $wpdb->update( |
506 | 506 | $shopp_meta_table, |
@@ -519,12 +519,12 @@ discard block |
||
519 | 519 | // @see https://github.com/pronamic/wp-pronamic-ideal/blob/1.3.4/classes/Pronamic/WooCommerce/IDeal/IDealGateway.php#L42 |
520 | 520 | $settings = get_option( 'woocommerce_pronamic_ideal_settings' ); |
521 | 521 | |
522 | -if ( is_array( $settings ) && isset( $settings['configuration_id'] ) ) { |
|
523 | - $value = $settings['configuration_id']; |
|
522 | +if ( is_array( $settings ) && isset( $settings[ 'configuration_id' ] ) ) { |
|
523 | + $value = $settings[ 'configuration_id' ]; |
|
524 | 524 | |
525 | - $settings['config_id'] = @$config_ids_map[ $value ]; |
|
525 | + $settings[ 'config_id' ] = @$config_ids_map[ $value ]; |
|
526 | 526 | |
527 | - unset( $settings['configuration_id'] ); |
|
527 | + unset( $settings[ 'configuration_id' ] ); |
|
528 | 528 | |
529 | 529 | update_option( 'woocommerce_pronamic_pay_ideal_settings', $settings ); |
530 | 530 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'test' => 'https://abnamro-test.ideal-payment.de/', |
77 | 77 | 'live' => 'https://abnamro.ideal-payment.de/', |
78 | 78 | ); |
79 | - $abn_amro_ideal_zelfbouw_v3->provider = 'abnamro'; |
|
79 | + $abn_amro_ideal_zelfbouw_v3->provider = 'abnamro'; |
|
80 | 80 | |
81 | 81 | // Deutsche Bank - iDEAL via Ogone. |
82 | 82 | $deutsche_bank_ideal_ogone = new Gateways\Ingenico\OrderStandardEasy\Integration(); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | 'test' => 'https://myideal.test.db.com/', |
95 | 95 | 'live' => 'https://myideal.db.com/', |
96 | 96 | ); |
97 | - $deutsche_bank_ideal_expert_v3->provider = 'deutschebank'; |
|
97 | + $deutsche_bank_ideal_expert_v3->provider = 'deutschebank'; |
|
98 | 98 | |
99 | 99 | // Fibonacci ORANGE. |
100 | 100 | $fibonacci_orange = new Gateways\Icepay\Integration(); |
@@ -19,14 +19,14 @@ |
||
19 | 19 | foreach ( $payment_methods as $payment_method => $details ) { |
20 | 20 | $class = $payment_method; |
21 | 21 | |
22 | - if ( $details['available'] ) { |
|
22 | + if ( $details[ 'available' ] ) { |
|
23 | 23 | $class .= ' available'; |
24 | 24 | } |
25 | 25 | |
26 | 26 | printf( |
27 | 27 | '<li class="%1$s"><span class="pronamic-pay-icon pronamic-pay-icon-completed"></span> %2$s</li>', |
28 | 28 | esc_attr( $class ), |
29 | - esc_html( $details['name'] ) |
|
29 | + esc_html( $details[ 'name' ] ) |
|
30 | 30 | ); |
31 | 31 | } |
32 | 32 |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | |
46 | 46 | public function get_and_set_provider() { |
47 | 47 | return array( |
48 | - array( 'set_id', 'get_id', uniqid() ), |
|
49 | - array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
50 | - array( 'set_status', 'get_status', 'completed' ), |
|
48 | + array( 'set_id', 'get_id', uniqid() ), |
|
49 | + array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
50 | + array( 'set_status', 'get_status', 'completed' ), |
|
51 | 51 | ); |
52 | 52 | } |
53 | 53 | |
@@ -66,11 +66,11 @@ discard block |
||
66 | 66 | |
67 | 67 | public function set_provider() { |
68 | 68 | return array( |
69 | - array( 'set_consumer_name', 'consumer_name', 'John Doe' ), |
|
69 | + array( 'set_consumer_name', 'consumer_name', 'John Doe' ), |
|
70 | 70 | array( 'set_consumer_account_number', 'consumer_account_number', '1086.34.779' ), |
71 | - array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ), |
|
72 | - array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
73 | - array( 'set_consumer_city', 'consumer_city', 'Drachten' ), |
|
71 | + array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ), |
|
72 | + array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
73 | + array( 'set_consumer_city', 'consumer_city', 'Drachten' ), |
|
74 | 74 | ); |
75 | 75 | } |
76 | 76 | |
@@ -89,25 +89,25 @@ discard block |
||
89 | 89 | |
90 | 90 | public function get_provider() { |
91 | 91 | return array( |
92 | - array( 'order_id', 'get_order_id', 1234 ), |
|
93 | - array( 'amount', 'get_amount', 89.95 ), |
|
94 | - array( 'currency', 'get_currency', 'EUR' ), |
|
95 | - array( 'method', 'get_method', 'ideal' ), |
|
96 | - array( 'issuer', 'get_issuer', 'ideal_KNABNL2H' ), |
|
97 | - array( 'language', 'get_language', 'nl' ), |
|
98 | - array( 'locale', 'get_locale', 'nl_NL' ), |
|
99 | - array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ), |
|
100 | - array( 'email', 'get_email', '[email protected]' ), |
|
101 | - array( 'first_name', 'get_first_name', 'John' ), |
|
102 | - array( 'last_name', 'get_last_name', 'Doe' ), |
|
103 | - array( 'customer_name', 'get_customer_name', 'John Doe' ), |
|
104 | - array( 'address', 'get_address', 'Burgemeester Wuiteweg 39b' ), |
|
105 | - array( 'city', 'get_city', 'Drachten' ), |
|
106 | - array( 'zip', 'get_zip', '9203 KA' ), |
|
107 | - array( 'country', 'get_country', 'NL' ), |
|
108 | - array( 'telephone_number', 'get_telephone_number', '1234567890' ), |
|
92 | + array( 'order_id', 'get_order_id', 1234 ), |
|
93 | + array( 'amount', 'get_amount', 89.95 ), |
|
94 | + array( 'currency', 'get_currency', 'EUR' ), |
|
95 | + array( 'method', 'get_method', 'ideal' ), |
|
96 | + array( 'issuer', 'get_issuer', 'ideal_KNABNL2H' ), |
|
97 | + array( 'language', 'get_language', 'nl' ), |
|
98 | + array( 'locale', 'get_locale', 'nl_NL' ), |
|
99 | + array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ), |
|
100 | + array( 'email', 'get_email', '[email protected]' ), |
|
101 | + array( 'first_name', 'get_first_name', 'John' ), |
|
102 | + array( 'last_name', 'get_last_name', 'Doe' ), |
|
103 | + array( 'customer_name', 'get_customer_name', 'John Doe' ), |
|
104 | + array( 'address', 'get_address', 'Burgemeester Wuiteweg 39b' ), |
|
105 | + array( 'city', 'get_city', 'Drachten' ), |
|
106 | + array( 'zip', 'get_zip', '9203 KA' ), |
|
107 | + array( 'country', 'get_country', 'NL' ), |
|
108 | + array( 'telephone_number', 'get_telephone_number', '1234567890' ), |
|
109 | 109 | array( 'analytics_client_id', 'get_analytics_client_id', 'GA1.2.1234567890.1234567890' ), |
110 | - array( 'entrance_code', 'get_entrance_code', uniqid() ), |
|
110 | + array( 'entrance_code', 'get_entrance_code', uniqid() ), |
|
111 | 111 | ); |
112 | 112 | } |
113 | 113 |
@@ -43,9 +43,9 @@ discard block |
||
43 | 43 | |
44 | 44 | public function get_and_set_provider() { |
45 | 45 | return array( |
46 | - array( 'set_id', 'get_id', uniqid() ), |
|
47 | - array( 'set_status', 'get_status', 'completed' ), |
|
48 | - array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
46 | + array( 'set_id', 'get_id', uniqid() ), |
|
47 | + array( 'set_status', 'get_status', 'completed' ), |
|
48 | + array( 'set_transaction_id', 'get_transaction_id', uniqid() ), |
|
49 | 49 | ); |
50 | 50 | } |
51 | 51 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return array( |
67 | 67 | array( 'set_consumer_name', 'consumer_name', 'John Doe' ), |
68 | 68 | array( 'set_consumer_iban', 'consumer_iban', 'NL56 RABO 0108 6347 79' ), |
69 | - array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
69 | + array( 'set_consumer_bic', 'consumer_bic', 'RABONL2U' ), |
|
70 | 70 | ); |
71 | 71 | } |
72 | 72 | |
@@ -85,15 +85,15 @@ discard block |
||
85 | 85 | |
86 | 86 | public function get_provider() { |
87 | 87 | return array( |
88 | - array( 'key', 'get_key', uniqid() ), |
|
89 | - array( 'source', 'get_source', 'woocommerce' ), |
|
90 | - array( 'source_id', 'get_source_id', '1234' ), |
|
91 | - array( 'frequency', 'get_frequency', 'daily' ), |
|
92 | - array( 'interval', 'get_interval', '1' ), |
|
93 | - array( 'interval_period', 'get_interval_period', 'Y' ), |
|
94 | - array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ), |
|
95 | - array( 'currency', 'get_currency', 'EUR' ), |
|
96 | - array( 'amount', 'get_amount', 89.95 ), |
|
88 | + array( 'key', 'get_key', uniqid() ), |
|
89 | + array( 'source', 'get_source', 'woocommerce' ), |
|
90 | + array( 'source_id', 'get_source_id', '1234' ), |
|
91 | + array( 'frequency', 'get_frequency', 'daily' ), |
|
92 | + array( 'interval', 'get_interval', '1' ), |
|
93 | + array( 'interval_period', 'get_interval_period', 'Y' ), |
|
94 | + array( 'description', 'get_description', 'Lorem ipsum dolor sit amet, consectetur.' ), |
|
95 | + array( 'currency', 'get_currency', 'EUR' ), |
|
96 | + array( 'amount', 'get_amount', 89.95 ), |
|
97 | 97 | ); |
98 | 98 | } |
99 | 99 |