2011-10-06 32 views
5

Paypal定期支払いに問題が発生しました。 CreateRecurringPaymentsProfile()は、作成されたプロファイル(ProfileID)のIDを返します。 Paypal定期支払いIPN確認

payment_cycle - Daily 
txn_type - recurring_payment_profile_ 
created 
last_name - User 
next_payment_date - 03:00:00 Oct 06, 2011 PDT 
residence_country - US 
initial_payment_amount - 0.00 
currency_code - USD 
time_created - 23:21:02 Oct 05, 2011 PDT 
verify_sign - ... 
period_type - Regular 
payer_status - verified 
test_ipn - 1 
tax - 0.00 
payer_email - ... 
first_name - Test 
receiver_email - ... 
payer_id - ... 
product_type - 1 
shipping - 0.00 
amount_per_cycle - 20.00 
profile_status - Active 
charset - windows-1252 
notify_version - 3.4 
amount - 20.00 
outstanding_balance - 0.00 
---------->recurring_payment_id - I-6EFKVB5FXRGH 
product_name - Ultimate Account 
ipn_track_id - ... 

は明らかに、プロファイルIDとrecurring_payment_idが等しい:それと同時に、私は、IPNのURLに次の確認を受けます。この後、お支払いについて確認が受け取られます:

mc_gross - 20.00 
outstanding_balance - 0.00 
period_type - Regular 
next_payment_date - 03:00:00 Oct 07, 2011 PDT 
protection_eligibility - Ineligible 
payment_cycle - Daily 
tax - 0.00 
payer_id - WR942TMLKNKZE 
payment_date - 04:38:37 Oct 06, 2011 PDT 
payment_status - Completed 
product_name - Ultimate Account 
charset - windows-1252 
---------->recurring_payment_id - I-5S42CVRD6HPC 
first_name - Test 
mc_fee - 0.88 
notify_version - 3.4 
amount_per_cycle - 20.00 
payer_status - verified 
currency_code - USD 
business - ... 
verify_sign - ... 
payer_email - ... 
initial_payment_amount - 0.00 
profile_status - Active 
amount - 20.00 
txn_id - 2XB154738E303273C 
payment_type - instant 
last_name - User 
receiver_email - ... 
payment_fee - 0.88 
receiver_id - ... 
txn_type - recurring_payment 
mc_currency - USD 
residence_country - US 
test_ipn - 1 
transaction_subject - 
payment_gross - 20.00 
shipping - 0.00 
product_type - 1 
time_created - 03:32:45 Sep 29, 2011 PDT 
ipn_track_id - ... 

これらの3つの値:CreateRecurringPaymentsProfileの復帰でプロファイルID(); recurring_payment_profile_created内のrecurring_payment_id; recurring_paymentのrecurring_payment_id - 同じである必要があります。 (特定のサブスクリプションの支払いを適切に識別する他の方法はないようです) また、recurring_payment_id(IPN上)は、複数回、recurring_payment_idが異なるたびに送信されます。

recurring_payment_idを使用して、特定のサブスクリプションの支払いを識別する必要がありますか、それを識別する別の方法がありますか?

答えて

8

プロファイルID = recurring_payment_id。 recurring_payment_idが異なる場合は、別のProfileID(別の定期支払いプロファイル)について話しています。

+0

ありがとうございますが、これは私が話している問題です。私は以前のすべてのトランザクション/プロファイルを掃除しています(paypalのサンドボックス内の1つのプロファイルのみ) - 私はまだ別のProfileIDとrecurring_payment_idを取得します。 –

+0

私はこれが古いスレッドだと知っていますが、私は同じ質問をしていますので、私はちょうどそれをテストして、同じIDを2回取得します。私はまた、試す前にすべてのプロフィールをきれいにしました。 CreateRecurringPaymentsProfile APIコールは[PROFILEID] => I-L9VFD2G8KW5Lで私を返し、txn_type "recurring_payment_profile_created"のIPNメッセージは "recurring_payment_id": "I-L9VFD2G8KW5L"を表示し、 "recurring_payment" IPNも同様です。 IPNメッセージの内容。おそらくこれは古いAPIバージョンの問題でした。 – MrUpsidown

+0

同じ問題を扱っていたので、私は追加したいと考えていました。あなたはサンドボックスに複数のサブスクリプションを設定しているので、recurring_payment_idの値が違う可能性があります。サンドボックスで開始するすべての個別の定期支払いは、異なるrecurring_payment_id(およびProfileID)を運ぶ予定です。そのことを心に留めておいてください:) – jball037

関連する問題