Python Wrong Amount


If a user cancells a transaction, say of 200 dollas, if the customer initiates the transaction again, instead of getting the 200 dollars popup from their phone, it becomes 400 dollars. This must be caused because the latest previous transaction was not a sucess. How do i stop this, i am using python


Add the code payment.items = [] before payment.add('Item name', 'Amount') . This removes any items that are in the list from the previous transaction. It seems like a bug in the Python-SDK package.