In some cases it seems as this check is not true even though the customer is placing a subscription in Woo.
To improve this, we now add a meta data field during process_payment() where we save _kco_recurring_order as yes or no. We can then use this as an improved check if we should try to fetch the recurring token, like this:
Currently we do the following check if we should try to fetch a recurring token from Klarna:
In some cases it seems as this check is not true even though the customer is placing a subscription in Woo.
To improve this, we now add a meta data field during
process_payment()
where we save_kco_recurring_order
asyes
orno
. We can then use this as an improved check if we should try to fetch the recurring token, like this:This PR also saves the received recurring token to subscription order notes.