change_reservation

Purpose: the change_reservation function is used to change a reservation. This is useful when a customer might want to change their order and the order amount changes. Call this function to check if the amount can be changed.

Example PHP code change_reservation($rno, $newAmount, $eid, $secret, $flags, &$result)
Input Data:

Required Variable Type Description
rno string The reservation number of the reservation to be modified.
newAmount integer The new amount for the reservation, given in ören or cents
eid integer A store ID which refers to your store in Klarna's database
secret string A shared secret which is used to secure all traffic between Klarna and your store
flags integer The flags variable determines how you wish to change the amount.
  • Flag 0 = Will change the amount to the amount that you send in the newAmount variable, e.g. original amount is 100 and you send in 150 = 150.
  • Flag 1 = Will add/deduct the amount to/from the original amount, e.g. original amount is 100 and you send in 150 = 250. This value can be either positive or negative.

Return value:
The string “OK”

 

API functions

Add_transaction functions
Invoice handling functions
Test persons