@@ 242-247 (lines=6) @@ | ||
239 | ||
240 | $currency = EDU()->get_option( 'eduadmin-currency', 'SEK' ); |
|
241 | ||
242 | if ( 'no' !== $this->get_option( 'testrun', 'no' ) ) { |
|
243 | $wpConfig = new EduSveaWebPayTestConfig( $this ); |
|
244 | } else { |
|
245 | $wpConfig = new EduSveaWebPayProductionConfig( $this ); |
|
246 | } |
|
247 | ||
248 | $wpOrder = WebPay::checkout( $wpConfig ); |
|
249 | ||
250 | $orderRow = WebPayItem::orderRow(); |
|
@@ 386-391 (lines=6) @@ | ||
383 | * @throws \Svea\WebPay\BuildOrder\Validator\ValidationException |
|
384 | */ |
|
385 | private function update_booking( $order_id, $booking_id, $programme_booking_id ) { |
|
386 | if ( 'no' !== $this->get_option( 'testrun', 'no' ) ) { |
|
387 | $wpConfig = new EduSveaWebPayTestConfig( $this ); |
|
388 | } else { |
|
389 | $wpConfig = new EduSveaWebPayProductionConfig( $this ); |
|
390 | } |
|
391 | ||
392 | $wpOrder = WebPay::checkout( $wpConfig ); |
|
393 | $wpOrder->setCheckoutOrderId( $order_id ); |
|
394 |