ä»çµã¿
CyberââSourceã¯ãæ¯æã管çãµãŒãã¹ãæäŸããäŒç€Ÿã§ãã äŒç€Ÿã¯1994幎ã«èšç«ãããŸããã 2010幎ãCyberââSourceã¯Visa Inc.ã«è²·åãããŸããã ãããŠçŸåšãã®åäŒç€Ÿã§ãã ã·ã¹ãã çµ±åã®ããã®ããã€ãã®ãœãªã¥ãŒã·ã§ã³ãæäŸãããŠããŸãã
- APIã®äœ¿çšïŒSimple Order APIãSOAP Toolkit APIïŒ
- ã»ãã¥ã¢ãªåãå ¥ãïŒWeb /ã¢ãã€ã«ããµã€ã¬ã³ããªãŒããŒPOSTïŒ
ã©ã®çµ±åãªãã·ã§ã³ãéžæããŸãããäžè¬çãªåäœåçã¯åãã§ãã ãŠãŒã¶ãŒãWebãµã€ãã§æ¯æãååŒãå®è¡ã§ããããã«ããã«ã¯ããŸãã¯ã¬ãžããã«ãŒããããã€ã³ãããããã€ãŸãCyberââSourceã·ã¹ãã ã«ç»é²ããå¿ èŠããããŸãã ç»é²ã«æåãããšããŠãŒã¶ãŒã¯äžæã®payment_tokenèå¥åãåãåããŸãããã®èå¥åã®ååšã¯ãåŸç¶ã®ãã¹ãŠã®ãã©ã³ã¶ã¯ã·ã§ã³ïŒã«ãŒããã©ã³ã¶ã¯ã·ã§ã³ïŒã§å¿ é ã§ãã ãããŠä»æ¥ãSecure Acceptanceãã¯ãããžãŒã«ã€ããŠã話ããããšæããŸãã ãã®çµ±åæ¹æ³ã«ããããµã€ãã§è³Œå ¥ããããã®ãã©ãŒã ããã°ããäœæã§ããŸãã ããã«ãæå°éã®ã³ãŒããèšè¿°ããå¿ èŠããããŸããããã«ãããããã°ã©ãã³ã°ã®æåã®äžæ©ãèžã¿åºããŠããã ãã§ããçµ±åããã»ã¹ãç°¡åã§ç解ãããããªããŸãã
CyberââSource Secure Acceptanceãšé£æºãã
CyberââSourceã·ã¹ãã ã䜿çšããã«ã¯ãæåã«ãã¹ãã¢ã«ãŠã³ããç»é²ããŠäœæããå¿ èŠããããŸãã ãã¹ãã¢ã«ãŠã³ãã¯ãéçºãšãã¹ãã®æ®µéã§ã®ã¿äœ¿çšãããå°æ¥çã«ã¯ãæ¬æ Œçãªåäœäžã®ã¢ã«ãŠã³ãã«çœ®ãæããå¿ èŠããããŸãã ç»é²åŸãç§ãã¡ã¯ãã¹ãããžãã¹ã»ã³ã¿ãŒã«ããŸãã ããã¯äž»ã«äœæ¥ããŒã«ã«ãªããŸãã ããã§ããŠãŒã¶ãŒã¯ã»ãã¥ã¢ãªåãå ¥ãã®ãããã¡ã€ã«ãäœæãããã©ã³ã¶ã¯ã·ã§ã³ã®çµæã確èªãããµããŒããµãŒãã¹ã«æçŽãæžããŸãã ããã«ããã£ããããã€ã³ã¿ãŒãã§ã€ã¹çšã®ãã·ã¢èªã®ååšã«æ³šç®ããããšæããŸãã [ãã€ãŠãŒã¶ãŒèšå®]ã¡ãã¥ãŒã§åãæ¿ããããšãã§ããŸãã äžè¬ã«ãSecure Acceptanceã®æäœã¯éåžžã«ç°¡åã§ããããã¡ã€ã«ã®äœæãšèšå®ã®æ®µéã§èŠåŽããã ãã§ãã ããããããã§ã¯ãµããŒããµãŒãã¹ãåžžã«å©ãã«ãªããŸããã
ç§ã®ãã¹ãŠã®è³ªåãžã®çãã¯éåžžã«æ©ãæ¥ãŸããã 確ãã«ããã®ãµãŒãã¹ã¯ãeãã±ãããéããŠéåžžã«å ·äœçã«ç·šæãããŠããŸãã 質åããã«ã¯ãããµããŒãã»ã³ã¿ãŒãã»ã¯ã·ã§ã³ã«é²ãã§ãã ããã ãµããŒãããŒãžãéããŸãã My eTicketsã»ã¯ã·ã§ã³ã«ã¯ããµãŒãã¹ãžã®åŒã³åºãã衚瀺ãããŸãã 質åããã«ã¯ãæ°ããeTicketãäœæããã ãã§ãã 以äžã¯ããŠãŒã¶ãŒãæãé »ç¹ã«å°ãã質åã®è¡šã§ãã æåã®ç¢ºèªãšããŠãå€åããªãã®çããæ¢ã«å«ãŸããŠãããããããŸããã ããã§ãªãå Žåã¯ãeTicketãäœæããŠãã ãããCyberââSourceã¹ãã·ã£ãªã¹ããå¿ èŠãªæ å ±ããã¹ãŠæäŸããŸãã 圌ãã¯åãeTicketã«åçãæçš¿ããŸãã
Webãµã€ãã§Cyberââsource Secure Acceptanceã䜿çšã§ããããã«ããã«ã¯ãé©åãªãããã¡ã€ã«ãäœæããå¿ èŠããããŸãã ããã¯ããããŒã«ãšèšå®ããéžæããããããã¡ã€ã«ãã¡ãã¥ãŒã®ãã»ãã¥ã¢ãªåãå ¥ããã»ã¯ã·ã§ã³ã«ç§»åããããšã§å®è¡ã§ããŸãã ããã©ã«ãã§ã¯ãSecure Acceptanceã¯ç¡å¹ã«ãªã£ãŠãããããããžãã¹ã»ã³ã¿ãŒã®ã¡ãã¥ãŒã«ç»é²ããçŽåŸã¯ãã®ã¢ã€ãã ã¯ç¡å¹ã«ãªããŸãã æå¹ã«ããã«ã¯ããµããŒãã«é£çµ¡ããå¿ èŠããããŸãã ããã«æ¯æãããŒã¯ã³åãµãŒãã¹ãæå¹åããŠãä»åŸãå人ã«å¯ŸããŠç¹°ãè¿ãè«æ±ãŸãã¯ã»ãã¥ã¢ã¹ãã¬ãŒãžãµãŒãã¹ãæå¹ã«ãªããŸããããšãããšã©ãŒãçºçããªãããã«ããããšããå§ãããŸãã
èšå®ã¡ãã¥ãŒã«ãSecure Acceptanceãã»ã¯ã·ã§ã³ã衚瀺ããããŸã§åŸ ã£ãŠããããããã¡ã€ã«ã®äœæã«é²ã¿ãŸãã
ã»ãã¥ã¢ãªåãå ¥ãWeb /ã¢ãã€ã«ããã³ã»ãã¥ã¢ãªåãå ¥ããµã€ã¬ã³ããªãŒããŒPOSTãããã¡ã€ã«
Cyberââsource Secure Acceptanceã¯ããµã€ãã«çµ±åããããã®2ã€ã®æ¹æ³ãæäŸããŸãã
- å®å šãªåãå ¥ãWeb /ã¢ãã€ã«
- å®å šãªåãå ¥ããµã€ã¬ã³ã泚æPOST
2ã€ã®æ¹æ³ã«å®è³ªçãªéãã¯ãããŸããã Secure Acceptance Web / Mobileã¯ãæ å ±ãåéããã³è¡šç€ºããããã®æ¢è£œã®ãã©ãŒã ãæäŸããŸãããSecure Acceptance Silent Order POSTã§ã¯ãéçºè ã¯ãã¹ãŠã®ãã©ãŒã ãåå¥ã«äœæããŸãã ããšãã°ãã¯ã¬ãžããã«ãŒããWeb /ã¢ãã€ã«ã«ãªã³ã¯ããã«ã¯ãCyberââSourceã«ãã£ãŠéçºãããç»é²ããŒã¿ãå ¥åããããã®ãã©ãŒã ãã¯ãªãã¯ããããšã§ããµã€ãã«ãã¿ã³ãé 眮ããã ãã§ååã§ãã ãã®ãã©ãŒã ãå€æŽããããšã¯ã§ããŸããïŒãã ãããããã¡ã€ã«èšå®ã§ã¹ã¿ã€ã«ããããã«å€æŽã§ããŸãïŒã ãã©ã³ã¶ã¯ã·ã§ã³ãæåããå Žåãé åæžãã©ãŒã ã衚瀺ãããŸãïŒCyberââSourceãããïŒã ãµã€ã¬ã³ããªãŒããŒPOSTã§ã¯ãéçºè ã¯å¿ èŠãªãã¹ãŠã®ãã©ãŒã ãäœæããŸãã ããããã¹ãŠã®éãã§ãã ãããŠãäž¡æ¹ã®æ¹æ³ã®åäœåçã¯åãã§ãã ãµãŒããŒã«ãã£ãŠèŠæ±ãåŠçãããåŸããŠãŒã¶ãŒã¯ãããã¡ã€ã«èšå®ã§æå®ãããããŒãžã«èªåçã«ãªãã€ã¬ã¯ããããŸãã ãŸããèšå®ã§é»åã¡ãŒã«ã¢ãã¬ã¹ãŸãã¯ããŒãžãæå®ãããŠããå Žåããã©ã³ã¶ã¯ã·ã§ã³ã®çµæãå«ãé åæžã¯ã©ãã«éä¿¡ãããŸãã
ããŸããŸãªã¿ã€ãã®ãããã¡ã€ã«ãããã€ã§ãäœæã§ããŸãïŒWeb /ã¢ãã€ã«ãŸãã¯ãµã€ã¬ã³ããªãŒããŒPOSTïŒã ãã ããã¢ã¯ãã£ãã«ã§ããã®ã¯ãã®ãã¡ã®1ã€ã ãã§ãã 泚æããŠãã ããã Web /ã¢ãã€ã«ãããã¡ã€ã«ãã¢ã¯ãã£ãã«ããŠããµã€ã¬ã³ããªãŒããŒPOSTã«ãªã¯ãšã¹ããéä¿¡ãããšãã·ã¹ãã ã®ãªã¯ãšã¹ãèªèšŒæ®µéã§ãšã©ãŒãçºçããŸãã çµå±ã®ãšãããåãããã¡ã€ã«ã«ã¯äžæã®èå¥åãšããŒããããããã«åºã¥ããŠæ¿èªãè¡ãããŸãã
äž»ãªèšå®ã°ã«ãŒãã®ãªã¹ãã¯æ¬¡ã®ãšããã§ãã
å šè¬
- äžè¬èšå®-ãããã¡ã€ã«åãã¿ã€ãããããã¡ã€ã«èå¥å
- æ¯æãèšå®-ã¯ã¬ãžããã«ãŒãã®çš®é¡ãé貚ã®èšå®
- ã»ãã¥ãªãã£-èªèšŒçšã®ããŒãäœæãã
- éç¥-ãã©ã³ã¶ã¯ã·ã§ã³ã®çµæãå«ãé åæžã®éä¿¡å ãéžæããŸã
- 顧客å¿çããŒãž-ããŸããŸãªãµãŒããŒå¿çã®ããŒãžèšå®
Web /ã¢ãã€ã«ã®ã¿
- å€èŠ³ãšãã©ã³ãã£ã³ã°-ç¬èªã®ãã©ã³ãããã©ãŒã ã«è¿œå ãã
- ããŒã«ãªãŒãŒã·ã§ã³-ãµããŒããããŠããèšèªã®ãªã¹ã
- æ¯æããã©ãŒã -ãã©ãŒã ãã£ãŒã«ãã®èšå®
å¿ èŠãªãã¹ãŠã®ãã£ãŒã«ãã«å ¥åããåŸããããã¡ã€ã«ãã¢ã¯ãã£ãã«ããŸãã å¿ èŠã«å¿ããŠãå€æŽãå ããŸã-æåã«éã¢ã¯ãã£ãåãè¡ããŸãã ããŒãžã®äžéšã«ããã <All Profiles ããã¿ã³ãã¯ãªãã¯ãããšã䜿çšå¯èœãªãã¹ãŠã®ãããã¡ã€ã«ã®ãªã¹ãã衚瀺ãããŸãã
å®çšçãªå®è£
å ¬åŒããã¥ã¡ã³ãã«ã¯ãããŸããŸãªããã°ã©ãã³ã°èšèªã§æžãããSecure Acceptanceã䜿çšããéåžžã«è¯ãäŸããããŸãã PHPã§ã®å®è£ ã¯éåžžã«ã·ã³ãã«ã§ãã·ã¹ãã ããµã€ãã«ç°¡åã«çµ±åã§ããŸãã ããããé衚瀺ãã£ãŒã«ãã®ãã©ãŒã ã«ãã©ã³ã¶ã¯ã·ã§ã³ãæ¿èªããããã®æ å ±ïŒãããã¡ã€ã«èå¥åãããŒãèå¥åããã©ã³ã¶ã¯ã·ã§ã³æ¥ä»ïŒãå«ãŸããŠãããšããäºå®ã¯å¥œãã§ã¯ãããŸããã§ããã ãã®ãããç§ã¯äººçãè€éã«ãããµãŒããŒã«éä¿¡ããçŽåã«ããããã¹ãŠã®ãã£ãŒã«ããå ¥åãããããã«ããããšã決ããŸããã ããã«ããµãŒããŒã«ã¢ã¯ã»ã¹ããã«è¡ãããšã¯ã§ããŸããã ãããŠãããã«çç±ããããŸãã CyberââSourceãµãŒããŒã«ããŒã¿ãéä¿¡ããåã«ã眲åãçæããå¿ èŠããããŸãã 眲åã¯ãã©ãŒã ã®å¿ é ãã£ãŒã«ãã«åºã¥ããŠçæããïŒãããã®ãã£ãŒã«ãã®ååã¯signed_field_namesãã£ãŒã«ãã«ãããŸãïŒã眲åãã£ãŒã«ãã«èšé²ãããŸãã ãµãŒããŒäžã§åã眲åãçæãããåä¿¡ããããŒã¿ã®æŽåæ§ãæ€èšŒããŸãã
ãããã£ãŠãç§ã®äŸã®ãã¹ãŠã®ã¹ã¯ãªããã¯3ã€ã®ã°ã«ãŒãã«åããããšãã§ããŸãã
get_default.phpã¹ã¯ãªããã¯ããã©ãŒã ãã£ãŒã«ãã«å ¥åããããã®ããŒã¿ã»ãããè¿ããŸãïŒãã©ã³ã¶ã¯ã·ã§ã³ã®ã¿ã€ããšã·ã¹ãã ã®ã¿ã€ãã«ãã£ãŠç°ãªããŸãïŒã ãã®ã¹ã¯ãªããã¯ãCyberââsource Secure Acceptanceãæäœããããã«äœæãã3ã€ã®ã¯ã©ã¹ã䜿çšããŸã
- Cyberââsourceåºæ¬ã¯ã©ã¹-Web /ã¢ãã€ã«ããã³ãµã€ã¬ã³ããªãŒããŒPOSTã«å ±éã®ãã£ãŒã«ããšã¡ãœãããå«ãŸããŠããŸã
- SecureAcceptanceWMã¯ã©ã¹-Web /ã¢ãã€ã«ã§ã®äœæ¥çš
- SecureAcceptanceSOPã¯ã©ã¹-ãµã€ã¬ã³ããªãŒããŒPOSTã§ã®äœæ¥çš
ããŒã¿ã¯JSON圢åŒã§è¿ããããã©ãŒã ã®å¯Ÿå¿ãããã£ãŒã«ãã«èšé²ãããåŸãéä¿¡ãããŸãã
Get_responseã¹ã¯ãªãã-ãµãŒããŒã®å¿çã¯ããã©ã³ã¶ã¯ã·ã§ã³çµæã®åä¿¡ãšãšãã«ããã«éä¿¡ãããŸãã ãã®ã¹ã¯ãªããã®ã¢ãã¬ã¹ã¯ããããã¡ã€ã«ã®ãéç¥ãèšå®ã«ç»é²ããå¿ èŠããããŸãã çãã¯é åã®åœ¢åŒã§ã$ _POSTã«ãããŸãã ãã©ã³ã¶ã¯ã·ã§ã³ã®çµæã¯reason_codeãã£ãŒã«ãã«ãããŸãã reason_codeã100ã®å Žåããã©ã³ã¶ã¯ã·ã§ã³ã¯æåã§ããå¿çãã£ãŒã«ãã®å®å šãªãªã¹ããšãšã©ãŒã³ãŒãã¯ããã¥ã¡ã³ãã«èšèŒãããŠããŸãã ãã®ã¹ã¯ãªããã®ã¿ã¹ã¯ã¯ããã©ã³ã¶ã¯ã·ã§ã³ãæåããå Žåã«payment_tokenãã£ãŒã«ããããŒã¿ããŒã¹ã«æžã蟌ãããšã§ãã
Get_usersã¹ã¯ãªãã-ãŠãŒã¶ãŒã®ãªã¹ãã®ååŸãŸãã¯æ°ãããªã¹ãã®äœæã«äœ¿çšãããŸãã ãã®ã¹ã¯ãªããã¯Userã¯ã©ã¹ã䜿çšããŸã ã
ããã«ããã¹ãŠã®ã¹ã¯ãªããã¯DbAdapterã¯ã©ã¹ã䜿çšããŸã ã ãã®ã¯ã©ã¹ã¯ãmySQLããŒã¿ããŒã¹ãšé£æºããããã«èšèšãããŠããŸãã
ãµãŒããŒã®å¿çã¯å¥ã®ã¢ãã¬ã¹ã«éä¿¡ããããããçåãèªç¶ã«çºçããŸããããŒã¯ã³ãäœæããããŠãŒã¶ãŒã远跡ããæ¹æ³ã¯ïŒ æšæºçãªè§£æ±ºçãèŠã€ãããªãã£ããããèŠã€ããŸããã ãã©ãŒã ãCiberSourceãµãŒããŒã«éä¿¡ããåã«ããã®ãã©ã³ã¶ã¯ã·ã§ã³ã®èå¥åããã¯ã¬ãžããã«ãŒããæ·»ä»ãããŠãŒã¶ãŒã«æžãçããŸãã åçãå°çãããšããã®èå¥åãå«ãŸããŸãã ãããã£ãŠããã©ã³ã¶ã¯ã·ã§ã³ãéå§ããããŠãŒã¶ãŒã確å®ã«èŠã€ããŠããã®ããã«payment_tokenãä¿åã§ããŸãã
ãããŠãã1ã€ã®çåãçããŸã-Webãã©ãŒã ãªãã§Secure Acceptanceã䜿çšããããšã¯å¯èœã§ããïŒ èšå€§ãªæ°ã®ãŠãŒã¶ãŒãããŠãæ¯æäžå®é¡ãæ¯æãå¿ èŠããããšããŸãã åžžã«ãµã€ãã«ã¢ã¯ã»ã¹ããŠãæ¯æããã©ãŒã ãéããŠèšå ¥ãããªãããã«ããŸãã ãã®ããã»ã¹ãäœããã®åœ¢ã§èªååããå¿ èŠããããŸãã CURLãšãµã€ã¬ã³ããªãŒããŒPOSTã䜿çšããŠãããå®è¡ããããšããŸããã ãµããŒããµãŒãã¹ã¯ããã®ãããªãã³ãã«ã®æ£ããåäœãä¿èšŒããªãã£ããšæžããŸããã ããããçµæã¯è¯å®çã§ããããªã¯ãšã¹ãã¯æ£åžžã«éä¿¡ãããŸãã curl_execïŒïŒé¢æ°ã®çµæã確èªããŠããã©ã³ã¶ã¯ã·ã§ã³ã倱æããå Žåã«ã¡ãã»ãŒãžãéä¿¡ããããšãèš±å¯ãããŠããããšã確èªããããšãå¿ããªãã§ãã ããã ãã ãããã®ãããªç®çã§CURLã䜿çšããããšã¯ãå§ãããŸããã åäœããŸãããCyberââSorce APIã»ã©äŸ¿å©ã§ã¯ãããŸããã
ããããããŠã³ããŒãã§ããç§ã®äŸã¯ãã¢ã«ãŠã³ãã®ãã¹ãããŒãžã§ã³ã§åäœããŸãã æ¬çªã«åãæ¿ããå Žåã次ã®ããšãè¡ãå¿ èŠããããŸãã
- ã·ã¹ãã ã«ç»é²ããïŒãã¹ãã¢ã«ãŠã³ãã®ä»£ããã«ãã¹ãã¢ã«ãŠã³ããäœæããïŒ
- ã¯ã©ã¹ã«æ°ãããããã¡ã€ã«ãã©ã¡ãŒã¿ãç»é²ããŸã
- ãã©ãŒã ãéä¿¡ããããã®ã¢ãã¬ã¹ãå€æŽããïŒãšã³ããã€ã³ããå€æŽããïŒ
Secure Acceptance Web / Mobileããã³Secure Acceptance Silent Order POSTã®å ¬åŒããã¥ã¡ã³ãã§ãå¿ é ãã©ãŒã ãã£ãŒã«ãããšã³ããã€ã³ããããã³ãã¹ãŠã®è¿œå æ å ±ã®ãªã¹ããèŠã€ããããšãã§ããŸãã