Skip to content

Commit f0f24f0

Browse files
author
Chris Gårdenberg
committed
We do have to update the booking in EduAdmin if this should work as well..
1 parent 2354856 commit f0f24f0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

class-edu-klarnacheckout.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,15 @@ public function process_paymentstatus() {
268268
$order->fetch();
269269

270270
if ( 'checkout_complete' === $order['status'] ) {
271+
272+
$patch_booking = new stdClass();
273+
$patch_booking->Paid = true;
274+
275+
EDUAPI()->REST->Booking->PatchBooking(
276+
intval( $_GET['booking_id'] ),
277+
$patch_booking
278+
);
279+
271280
$update = array();
272281
$update['status'] = 'created';
273282
$order->update( $update );

0 commit comments

Comments
 (0)