|
@@ 127-132 (lines=6) @@
|
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
if ( 'no' !== $this->get_option( 'testrun', 'no' ) ) { |
| 128 |
|
$wpConfig = new EduSveaWebPayTestConfig( $this ); |
| 129 |
|
} else { |
| 130 |
|
$wpConfig = new EduSveaWebPayProductionConfig( $this ); |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
//$response = ( new SveaResponse( $_REQUEST, $selectedCountry, $wpConfig ) )->getResponse(); |
| 134 |
|
|
| 135 |
|
$sveaOrderId = get_transient( 'eduadmin-sveaorderid-' . $ebi->EventBooking->EventCustomerLnkID, - 1 ); |
|
@@ 196-201 (lines=6) @@
|
| 193 |
|
|
| 194 |
|
$currency = get_option( 'eduadmin-currency', 'SEK' ); |
| 195 |
|
|
| 196 |
|
if ( 'no' !== $this->get_option( 'testrun', 'no' ) ) { |
| 197 |
|
$wpConfig = new EduSveaWebPayTestConfig( $this ); |
| 198 |
|
} else { |
| 199 |
|
$wpConfig = new EduSveaWebPayProductionConfig( $this ); |
| 200 |
|
} |
| 201 |
|
#$wpOrder = WebPay::createOrder( $wpConfig ); |
| 202 |
|
$wpOrder = WebPay::checkout( $wpConfig ); |
| 203 |
|
|
| 204 |
|
$orderRow = WebPayItem::orderRow(); |