| ±ÇÀ§ÀÖ´Â ÀÚÁÖ Authorize.net API¿¡ ¾×¼¼½ºÇϱâÀ§ÇÑ Awesome-Sauce Python ¶óÀ̺귯¸®. ´ÞÄÞÇÑ! |
Áö±Ý ´Ù¿î·Îµå |
±ÇÀ§ÀÖ´Â ÀÚÁÖ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Jeff Schenck
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://github.com/adly/
±ÇÀ§ÀÖ´Â ÀÚÁÖ Å±×
±ÇÀ§ÀÖ´Â ÀÚÁÖ ¼³¸í
Authorizesauce´Â Authorize.net API¿¡ ¾×¼¼½ºÇϱâÀ§ÇÑ ºñ¹Ð ¼Ò½ºÀÔ´Ï´Ù. °Å·¡, ¹Ýº¹ ÁöºÒ ¹× ÀúÀåµÈ ÁöºÒ¿¡ ´ëÇÑ ½ÂÀÎ API´Â ¸ðµÎ ´Ù¸£¸ç Á÷Á¢ÀûÀ¸·Î »ç¿ëÇϱâ À§ÇØ ¾î»öÇÕ´Ï´Ù. ´ë½Å, ¼¼ °³ÀÇ Authorize.net API¸¦ ÇϳªÀÇ ÀÏ°üµÈ Pythonic ÀÎÅÍÆäÀ̽º·Î ÅëÇÕÇÏ´Â ½ÂÀÎ ¼Ò½º¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ½±°Ô ½Å¿ë Ä«µå¸¦ ÃæÀüÇϽʽÿÀ! >>> # init Authorize Client ¹× ½Å¿ë Ä«µå ±ÇÇÑ ºÎ¿© AuthorizeClient, CreditCard >>> Authorize = AuthorizeClient ( '285Tupus', '58JKJ4T95UEE75WD') >>> CC = CREDTCARD ( ' 4111111111111 ''2018 ','01 ','911 ','Joe ','Blow ') >>> Ä«µå = client.card (CC) >>> # Ä«µå¸¦ û±¸ >>> Ä«µå. capture (100) >>> # ³ªÁß¿¡ Çã°¡ ¼¹ö¿¡ Ä«µå ÀúÀå >>> saved_card = card.save () >>> sav_card.uid'7713982 | 6743206 '>>> # ÀúÀåµÈ Ä«µå¸¦ »ç¿ëÇÏ¿© Æ®·£Àè¼ÇÀ» ÀÎÁõÇϽʽÿÀ. ³ªÁß¿¡ Á¤Âø >>> SAVED_CARD = CLIENT.SAVED_CARD ( '7713982 | 6743206') >>> °Å·¡ = SAVED_CARD.AUTH (200) >>> TRANSACTESETLE () Á¦Ç° ȨÆäÀÌÁö
±ÇÀ§ÀÖ´Â ÀÚÁÖ °ü·Ã ¼ÒÇÁÆ®¿þ¾î