PHP Paypal½Ó¿Ú¿ª·¢
PayPal ¿ìËÙ¡¢°²È«¶øÓÖ·½±ã£¬ÊÇ¿ç¹ú½»Ò×µÄÊ×Ñ¡ÔÚÏ߸¶¿î·½Ê½¡£ÏÖÔÚPayPal¿ÉÒԺ͹úÄڴ󲿷ÖÐÅÓÿ¨¹ØÁª,¿ÉÒÔʵÏÖ¹úÈ˵Ŀç¹ú½»Ò×ÊÕÖ§¡£
ÉêÇëPayPal×¢²áÍøÖ·£ºhttps://www.paypal.com/
paypal½Ó¿ÚÓëÆäËü½Ó¿ÚÓÐЩ²»Í¬£¬ÉÔ΢¸´ÔÓÒ»µã¡£ ÆäÊµÒøÐнӿÚÒ²ËãÊÇÒ»¸öÕ¾µãµÄ²å¼þ¡£
Ëùνpaypal ipn£¨Instant Payment Notification£©£¬¾ÍÊÇPaypal¿ª·¢µÄÒ»ÖÖÄÜÖ÷¶¯Í¨ÖªµÚÈý·½Âô¼Òϵͳ½»Ò×״̬µÄÒ»ÖÖ»úÖÆ¡£IPNµÄÔÀíºÜ¼òµ¥£¬¾ÍÊǵ±²úÉúÁËÒ»¸ö½»Ò×Ö®ºó£¬ ½»Ò×״̬·¢Éú±ä»¯Ê±£¬ÈçÓû§ÒѾ¸¶¿î¡¢»òÕßÍ˿³·Ïúʱ£¬PaypalÀûÓó£ÓõÄHTTP POST·½Ê½£¬½«½»Ò×µÄһЩ±äÁ¿Ìá½»¸øÍøÕ¾µÄij¸öÒ³Ãæ£¨³ÆÖ®ÎªIPN Handler£©£¬µ±Õâ¸öÒ³Ãæ½ÓÊܵ½ÇëÇóʱºò£¬½«ÕâЩÊý¾ÝÔ·â²»¶¯¼ÓÉÏÒ»¸öָʾÑéÖ¤µÄcmd=_notify-validate£¬POST»ØPaypal µÄ½Ó¿ÚµØÖ·£¬Èç¹ûÊý¾ÝÕýÈ·£¬ÄÇôPaypal·µ»Ø×Ö·û´®VERIFIED£¬·ñÔòΪINVALID£¬Èç¹û½á¹ûΪVERIFIED£¬ÄÇôÄãµÄ³ÌÐò¾Í¿ÉÒÔʹÓÃÕâ ЩÊý¾Ý½øÐвÙ×÷¡£
¿ªÉèSandboxÕʺÅ
µ«´úÂëµÄµ÷ÊÔÊÇÒ»¼þºÜÍ´¿àµÄÊÂÇ飬ÒòΪ×÷ΪµÚÈý·½¿ª·¢ÈËÔ±£¬²»¿ÉÄÜ¿ªÁ½¸öÕʺţ¬Ã¿´Î²âÊÔ»¹ÒªÖ®¼ä½»Ò×һЩǮ£¬ËùÒÔPaypalרÃÅ¿ª·¢ÁË Sandbox¸ø ¿ª·¢ÈËÔ±½øÐпª·¢£¬Ê×Ïȵ½https://developer.paypal.com/ ×¢²áÒ»¸ö¿ª·¢Õʺţ¬ºÃÁËÖ®ºóÔÙ½øÈëSandbox½¨Á¢²âÊÔÓõÄPaypalÐéÄâÕʺţ¨ÖÁÉÙÓ¦¸Ã½¨Á¢Ò»¸öBusinessµÄºÍÒ»¸öPersonalµÄ£©£¬Õâ ÖÖÕ˺Å×¢²á·½·¨ºÍPaypalµÄÁ÷³ÌÒ»Ñù£¬ÐÅÏ¢¿ÉÒÔÊǼٵ쬰üÀ¨ÒøÐÐÕʺš¢ÐÅÓÿ¨£¨ÆäʵPaypal Sandbox»á×Ô¶¯Éú³ÉÒ»Ð©Ëæ»úµÄºÅÂ룩¡£½ÓÏÂÀ´ÐèÒª¼¤»îPaypal SandboxµÄÐéÄâÕʺţ¬×¢Ò⣬ÕâÀï²»¹ÜÄãÔÚPaypal Sanbox×¢²áʱÌîʲôÓʼþµØÖ·£¬ÓÐÈκη¢Ë͵½ÐéÄâÕʺÅËùÌîÓÊÏäµÄÓʼþ¶¼´æ»áÔÚ¿ª·¢ÕʺŵĹÜÀí½çÃæÖеÄEmailÒ³£¨µ¼º½À¸ÉÏÓУ©ÖС£µÇ¼ SandboxµÄÐéÄâPaypal»·¾³£¬»¹ÐèÒªÑéÖ¤ÐéÄâÕʺŵÄÒøÐУ¬ÕâÀï¿ÉÒÔËæ±ãÌȻºóͨ¹ýAdd FundsÀ´¸øÕË»§³äÖµ£¨ÏëÌî¶àÉÙÌî¶àÉÙ 920-203 920-533 £©¡£È»ºó£¬»¹ÐèÒª¼¤»îIPNµÄÑ¡ÏÔÚBusinessµÄÄǸöÕË»§µÄProfileÉèÖÃÒ³ÃæÖУ¬µã»÷£¬È»ºóµã»÷Edit°´Å¥£¬´ò¿ªIPN£¬ÕâÀïÈç¹ûÄãʹÓà µÄÊǹ̶¨µÄIPN Handle£¬¿ÉÒÔÖ±½Ó½«µØÖ·ÌîÈë¡£
½ÓÏÂÀ´£¬ÎÒÃDzâÊÔµÄʱºò£¬Ó¦¸Ã½«Paypal½Ó¿ÚµÄµØÖ·ÉèÖÃΪ https://www.sandbox.paypal.com/cgi-bin/webscr
»ù±¾µÄÁ÷³Ì
µ±¿Í»§ÏòÄú¸¶¿îʱ£¬PayPal½«ÏòλÓÚÖ¸¶¨ URL (type=”hidden” name=”notify_url” value=” “)µÄ·þÎñÆ÷·¢ËÍÒ»¸ö֪ͨ¡£´Ë֪ͨÖн«°üÀ¨ÄúµÄ¿Í»§µÄËùÓи¶¿îÐÅÏ¢£¨ÀýÈ磬¿Í»
Ïà¹ØÎĵµ£º
˵¾äʵ»°,дÕâ¸öÕæ¹»ÎÞÁĵÄ.±¾À´¿´ÁËijλ´óϺµÄÀàËÆÎÄÕÂ,¸¹·ÌÁ˼¸¾äÒ²¾ÍËãÁË.µ«ÊÇ×òÌìÍíÉÏÓиö¿Í»§ÄÃ×ÅÕâÆªÎÄÕÂÎÊÎÒ: ÄãѾµÄ×Ô¼º×ö
Íâ°ü,ÄãË㼸¶ÎPHPer?Ëì¸Ð¾õÄÇÆªÎÄÕ¶ÔijЩ°ëͨ²»Í¨Ö®È˵ÄÎóµ¼Ö®Éî.ÎÞ·¨,Ö»ÓÐд´ËÎÄÕ±íÃ÷ÎÒ¶ÔPHPerµÄË®Æ½Çø·ÖµÄÁ¢³¡.
¹ØÓÚ¾ßÌåÊÕÈëˮƽ,×ܵÄÀ´ËµÒòΪÕ⼸ÄêPHPÅàѵ°àµÄ¼Ó¶à,´óÁ¿PHPÐÂÊÖ¿ ......
#################################
##########BY:Moskey.Tong#########
###########2009-11-15############
#########*×ªÔØÇë×¢Ã÷*############
#################################
×ܽáÒ»ÏÂÕâ¸öÐÇÆÚÌìPHPÉÏ´«Í¼Æ¬¡£
ÉÏ´«Í¼Æ¬ÔÀí£ºÊ×ÏÈÅжÏÎļþÀàÐÍÊÇ·ñΪͼƬ¸ñʽ£¬ÈôÊÇÔòÉÏ´«Îļþ£¬È»ºóÖØÃüÃûÎļþ£¨Ò»°ã¶¼ÊDZÜÃâÉ ......
ÕûÀí»î£ºPHPµÄÈÕÆÚʱ¼äº¯Êýdate()
1£¬Äê-ÔÂ-ÈÕ
echo date('Y-m-j');
2007-02-6
echo date('y-n-j');
07-2-6
´óдY±íʾÄêËÄλÊý×Ö£¬¶øÐ¡Ð´y±íʾÄêµÄÁ½Î»Êý×Ö£»
Сдm±íʾÔ·ݵÄÊý×Ö(´øÇ°µ¼)£¬¶øÐ¡Ð´nÔò±íʾ²»´øÇ°µ¼µÄÔ·ÝÊý×Ö¡£
echo date('Y-M-j');
2007-Feb-6
echo date('Y-m-d');
2007-02-06
´óдM±íʾÔÂ·ÝµÄ ......
ÕªÒª: ÓÃÕýÔòʵÏÖ°üº¬Ä³¸ö×Ö·û´®ºÜÈÝÒ×£¬µ«Èç¹ûʵÏÖ²»°üº¬Ä³¸ö×Ö·û´®ÄØ£¿×÷Õ߸ø³öÁËÒ»¸ö½â¾ö·½°¸¡£
ÅжÏÒ»¸ö×Ö·û´®ÖÐÊÇ·ñº¬ÓÐÁíÒ»×Ö·û´®£¬phpÓкܶ෽·¨£¬ÈçÏ£º
1. ³£¼ûº¯Êý
strstr($str, "abc");
strstr($str, "abc");
2. ÕýÔòÆ¥Åä
preg_match("/(abc)/is", $str);
p ......