I am recieving an authorization call back as follows:
<script>
$(function(){
$("button.authorize").on('click', function(){
Klarna.Payments.authorize({
payment_method_category: ''
}, function(res) {
console.log("Response from the authorize call:")
console.log(res)
})
})
})
</script>
Which returns:
Object { show_form: true, approved: true, finalize_required: false, authorization_token: "mytoken" }
How can I use the value of authorization_token in the following url:
https://api.playground.klarna.com/payments/v1/authorizations/**res.authorization_token**/order