|
@@ 230-235 (lines=6) @@
|
| 227 |
|
|
| 228 |
|
$currency = EDU()->get_option( 'eduadmin-currency', 'SEK' ); |
| 229 |
|
|
| 230 |
|
if ( 'no' !== $this->get_option( 'testrun', 'no' ) ) { |
| 231 |
|
$wpConfig = new EduSveaWebPayTestConfig( $this ); |
| 232 |
|
} else { |
| 233 |
|
$wpConfig = new EduSveaWebPayProductionConfig( $this ); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
$wpOrder = WebPay::checkout( $wpConfig ); |
| 237 |
|
|
| 238 |
|
$orderRow = WebPayItem::orderRow(); |
|
@@ 379-384 (lines=6) @@
|
| 376 |
|
* @throws \Svea\WebPay\BuildOrder\Validator\ValidationException |
| 377 |
|
*/ |
| 378 |
|
private function update_booking( $order_id, $booking_id, $programme_booking_id ) { |
| 379 |
|
if ( 'no' !== $this->get_option( 'testrun', 'no' ) ) { |
| 380 |
|
$wpConfig = new EduSveaWebPayTestConfig( $this ); |
| 381 |
|
} else { |
| 382 |
|
$wpConfig = new EduSveaWebPayProductionConfig( $this ); |
| 383 |
|
} |
| 384 |
|
|
| 385 |
|
$wpOrder = WebPay::checkout( $wpConfig ); |
| 386 |
|
$wpOrder->setCheckoutOrderId( $order_id ); |
| 387 |
|
|