pip install -r requirements.txt
from mugglepay import MugglepayClient
API_KEY = '' # put your api key here
mgp = MugglepayClient(api_key=API_KEY)
mgp.create_order(merchat_order_id, price_amount, price_currency, pay_currency, title, description, callback_url, cancel_url, success_url, mobile, fast, token)
mgp.get_order(order_id)
mgp.get_orders(status, limit, offset)
mgp.checkout_order(status, limit, offset)
python callback_server.py
You need deploy this server online in order to get mugglepay official callback request. Make sure you put correct callback_url when you try to create an order.
- First click on the Sign Up address above
- Sign InMugglePay Portal
- Choose"Developer Center"->“API”->“Use on backend server”,click“Add Key”,Get ur Key。
- replace
api_key
in mugglepay.py with your key