| moz_inapp_pay. Mozilla Marketplace In-App Payments·Î ÀÛµ¿ÇÏ´Â Python ¸ðµâ |
Áö±Ý ´Ù¿î·Îµå |
moz_inapp_pay. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Kumar McMillan
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://farmdev.com/
moz_inapp_pay. ű×
moz_inapp_pay. ¼³¸í
MOZ_INAPP_PAY´Â Mozilla Marketplace In-App Payments·Î ÀÛµ¿ÇÏ´Â ÆÄÀ̽㠸ðµâÀÔ´Ï´Ù. Docs.MozillaÀÇ ÀÎ¾Û ¼ö´ç¿¡¼ ÀÎ¾Û ÁöºÒÀÌ µðÁöÅÐ »óÇ°¿¡ ´ëÇÑ ÁöºÒÀ» ¼ö¶ôÇÏ´Â ¾ÛÀ» ¿î¿µ ÇÒ ¼öÀÖ´Â ¹æ¹ýÀ» ¸ðµÎ ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù. ÁöºÒÀÌ ¿Ï·áµÇ¸é Mozilla Marketplace´Â Æ®·£Àè¼Ç ID¸¦ ¾Û¿¡ Àü´ÞÇؾßÇÕ´Ï´Ù. ÀÌ ¶óÀ̺귯¸®¸¦ »ç¿ëÇÏ¿© ÇØ´ç Åë½ÅÀÇ ¼¸íÀ» À¯È¿È ÇÒ ¼ö ÀÖ½À´Ï´Ù. installationwith pip ¶Ç´Â easy_install, ½ÇÇà : PIP ¼³Ä¡ moz_inapp_payor ¼Ò½º¿¡¼ ¼³Ä¡ (±ÇÀå) : pip ¼³Ä¡ git + git : //github.com/kumar303/moz_inapp_pay.gitverify postbackimimport loggingfrom import invalidJwt, process_postbacktry : data = process_postback (signed_request, app_key, app_secret) : data = process_chargeback (signed_request, app_kee, app_secret Djangoif Django ÇÁ·¹ÀÓ ¿öÅ©¸¦ »ç¿ëÇϸé URLS.py.ADD¿¡ ¿À¸¥ÂÊÀ¸·Î ²ÈÀ» ¼ö ÀÖ½À´Ï´Ù. Settings.py ÆÄÀÏ¿¡ ¾ÛÀ» ²ÈÀ» ¼ö ÀÖ½À´Ï´Ù. installed_apps = , JWT_DATA )) ¿¹¿Ü´Â moz_inapp_pay.djangoapp ä³Î¿¡ ±â·ÏµË´Ï´Ù. ºä´Â ÇØ´ç Çڵ鷯¸¦ ÇØ´ç Çڵ鷯¸¦ Ãß°¡ÇؾßÇÕ´Ï´Ù. InvalidJwt ¿¹¿Ü°¡ ¹ß»ýÇϸé 400 °³ÀÇ À߸øµÈ ¿äûÀÌ ¹ÝȯµË´Ï´Ù. Á¦Ç°ÀÇ È¨ÆäÀÌÁö
moz_inapp_pay. °ü·Ã ¼ÒÇÁÆ®¿þ¾î