def recurrent_payment(self, order, payment_method): ws = Api() account = payment_method.account reference = order.order_code shopper_email = account.email shopper_reference = account.account_id amount = order.total currency = order.currency statement = "TBD" ws.authorise_recurring_payment(reference, statement, amount, currency, shopper_reference, shopper_email, shopper_ip=None, recurring_detail_reference='LATEST')