@@ 228-233 (lines=6) @@ | ||
225 | ||
226 | $currency = EDU()->get_option( 'eduadmin-currency', 'SEK' ); |
|
227 | ||
228 | if ( 'no' !== $this->get_option( 'testrun', 'no' ) ) { |
|
229 | $wpConfig = new EduSveaWebPayTestConfig( $this ); |
|
230 | } else { |
|
231 | $wpConfig = new EduSveaWebPayProductionConfig( $this ); |
|
232 | } |
|
233 | ||
234 | $wpOrder = WebPay::checkout( $wpConfig ); |
|
235 | ||
236 | $customer = WebPayItem::companyCustomer(); |
|
@@ 409-414 (lines=6) @@ | ||
406 | * @throws \Svea\WebPay\BuildOrder\Validator\ValidationException |
|
407 | */ |
|
408 | private function update_booking( $order_id, $booking_id, $programme_booking_id ) { |
|
409 | if ( 'no' !== $this->get_option( 'testrun', 'no' ) ) { |
|
410 | $wpConfig = new EduSveaWebPayTestConfig( $this ); |
|
411 | } else { |
|
412 | $wpConfig = new EduSveaWebPayProductionConfig( $this ); |
|
413 | } |
|
414 | ||
415 | $wpOrder = WebPay::checkout( $wpConfig ); |
|
416 | $wpOrder->setCheckoutOrderId( $order_id ); |
|
417 |