2011-03-12 2 views
0

를 사용하여와 IPN 통합 미가 캐릭에 의해
http://www.micahcarrick.com/php-paypal-ipn-integration-class.html
IPN과 함께 페이팔 통합.페이팔 - subcription 내가 여기 사용할 수있는 페이팔 클래스를 사용하고 PHP 클래스

이제 구독하기를 원하며 가입/탈퇴 IPN을 처리하고 싶습니다. 이 현재 코드입니다 : 나는 이벤트가 "가입"인 경우 감지 할 방법

case 'ipn': 

if ($p->validate_ipn()) { 

    // Payment has been recieved and IPN is verified. This is where you 
    // update your database to activate or process the order, or setup 
    // the database with the user's order details, email an administrator, 
    // etc. You can access a slew of information via the ipn_data() array. 

, "유엔 가입"또는 무엇? 사전에

감사합니다,
happyhardik

답변

0

당신이 요청에서 사용할 수있는 txn_type 매개 변수를 통해 거래의 유형을 알 수 있습니다. the various types에 대한 PayPal 설명서를 참조하십시오.

subscr_signupsubscr_cancel은 구독 및 가입 취소를 적절하게 나타냅니다.