idPay Payment for Python You should have a Payment Token to use this code . Then you should place your Token in TOKEN constant ( Line 7 ) Documentation IdPay Payment Documentation