payPal付款处理相关的参数说明-供参考

IPN and PDT Variables

PayPal returns related variables for each kind of IPN or PDT message. Not all variables are returned for each type of transaction.

IPN and PDT variable names are case-sensitive. All constant values are lowercase, except those for payment_status, whose constant values have an initial capital letter.

Note: Values posted by IPN are URL-encoded. For example, a colon in the value http://... is encoded as %3A in an IPN post, as in http%3A//...

IPN Transaction Types

Typically, your back-end or administrative processes will perform specific actions based on the kind of IPN message received. You can use the txn_type variable in the message to trigger the kind of processing you want to perform.

Transaction Type (txn_type)

Description

Credit card chargeback if the case_type variable contains chargeback
adjustmentA dispute has been resolved and closed
cartPayment received for multiple items; source is Express Checkout or the PayPal Shopping Cart.
express_checkoutPayment received for a single item; source is Express Checkout
masspayPayment sent using Mass Pay
mp_cancelBilling agreement cancelled
mp_signupCreated a billing agreement
merch_pmtMonthly subscription paid for PayPal Payments Pro
new_caseA new dispute was filed
payoutA payout related to a global shipping transaction was completed.
recurring_paymentRecurring payment received
recurring_payment_expiredRecurring payment expired
recurring_payment_failed

Recurring payment failed
This transaction type is sent if:
- the attempt to collect a recurring payment fails
- the "max failed payments" setting in the customer's recurring payment profile is 0
In this case, PayPal tries to collect the recurring payment an unlimited number of times without ever suspending the customer's recurring payments profile.

recurring_payment_profile_createdRecurring payment profile created
recurring_payment_profile_cancelRecurring payment profile canceled
recurring_payment_skippedRecurring payment skipped; it will be retried up to 3 times, 5 days apart
recurring_payment_suspendedRecurring payment suspended
This transaction type is sent if PayPal tried to collect a recurring payment, but the related recurring payments profile has been suspended.
recurring_payment_suspended_due_to_max_failed_paymentRecurring payment failed and the related recurring payment profile has been suspended
This transaction type is sent if:
- PayPal's attempt to collect a recurring payment failed
- the "max failed payments" setting in the customer's recurring payment profile is 1 or greater
- the number of attempts to collect payment has exceeded the value specified for "max failed payments"
In this case, PayPal suspends the customer's recurring payment profile.
send_moneyPayment received; source is the Send Money tab on the PayPal website
subscr_cancelSubscription canceled
subscr_eotSubscription expired
subscr_failedSubscription payment failed
subscr_modifySubscription modified
subscr_paymentSubscription payment received
subscr_signupSubscription started
virtual_terminalPayment received; source is Virtual Terminal
web_acceptPayment received; source is a Buy Now, Donation, or Auction Smart Logos button

Transaction and Notification-Related Variables

Transaction and notification-related variables identify the merchant that is receiving a payment or other notification and transaction-specific information.

Variable Name

Description

businessEmail address or account ID of the payment recipient (that is, the merchant). Equivalent to the values of receiver_email (if payment is sent to primary account) and business set in the Website Payment HTML.
Note: The value of this variable is normalized to lowercase characters.
Length: 127 characters
charsetCharacter set
customCustom value as passed by you, the merchant. These are pass-through variables that are never presented to your customer
Length: 255 characters
ipn_track_idInternal; only for use by MTS and DTS
notify_versionMessage's version number
parent_txn_idIn the case of a refund, reversal, or canceled reversal, this variable contains the txn_id of the original transaction, while txn_id contains a new ID for the new transaction.
Length: 19 characters
receipt_idUnique ID generated during guest checkout (payment by credit card without logging in).
receiver_emailPrimary email address of the payment recipient (that is, the merchant). If the payment is sent to a non-primary email address on your PayPal account, the receiver_email is still your primary email.
Note: The value of this variable is normalized to lowercase characters.
Length: 127 characters
receiver_idUnique account ID of the payment recipient (i.e., the merchant). This is the same as the recipient's referral ID.
Length: 13 characters
resendWhether this IPN message was resent (equals true); otherwise, this is the original message.
residence_countryISO 3166 country code associated with the country of residence
Length: 2 characters
test_ipnWhether the message is a test message. It is one of the following values:
  • 1 – the message is directed to the Sandbox
txn_idThe merchant's original transaction identification number for the payment from the buyer, against which the case was registered.
txn_typeThe kind of transaction for which the IPN message was sent.
verify_signEncrypted string used to validate the authenticity of the transaction

Buyer Information Variables

Buyer information identifies the buyer or initiator of a transaction by payer ID or email address. Additional contact or shipping information may be provided.

Variable Name

Description

address_countryCountry of customer's address
Length: 64 characters
address_cityCity of customer's address
Length: 40 characters
address_country_codeISO 3166 country code associated with customer's address
Length: 2 characters
address_nameName used with address (included when the customer provides a Gift Address)
Length: 128 characters
address_stateState of customer's address
Length: 40 characters
address_statusWhether the customer provided a confirmed address. It is one of the following values:
  • confirmed – Customer provided a confirmed address.
  • unconfirmed – Customer provided an unconfirmed address.
address_streetCustomer's street address.
Length: 200 characters
address_zipZip code of customer's address.
Length: 20 characters
contact_phoneCustomer's telephone number.
Length: 20 characters
first_nameCustomer's first name
Length: 64 characters
last_nameCustomer's last name
Length: 64 characters
payer_business_nameCustomer's company name, if customer is a business
Length: 127 characters
payer_emailCustomer's primary email address. Use this email to provide any credits.
Length: 127 characters
payer_idUnique customer ID.
Length: 13 characters

Payment Information Variables

Payment information identifies the amount and status of a payment transaction, including fees.

Variable Name

Description

auth_amountAuthorization amount
auth_expAuthorization expiration date and time, in the following format: HH:MM:SS DD Mmm YY, YYYY PST
Length: 28 characters
auth_idAuthorization identification number
Length: 19 characters
auth_statusStatus of authorization
echeck_time_processedThe time an eCheck was processed; for example, when the status changes to Success or Completed. The format is as follows: hh:mm:ss MM DD, YYYY ZONE, e.g. 04:55:30 May 26, 2011 PDT.
exchange_rateExchange rate used if a currency conversion occurred.
fraud_managment_pending_filters_xOne or more filters that identify a triggering action associated with one of the following payment_status values: Pending, Completed, Denied, where x is a number starting with 1 that makes the IPN variable name unique; x is not the filter's ID number. The filters and their ID numbers are as follows:
  • 1 - AVS No Match
  • 2 - AVS Partial Match
  • 3 - AVS Unavailable/Unsupported
  • 4 - Card Security Code (CSC) Mismatch
  • 5 - Maximum Transaction Amount
  • 6 - Unconfirmed Address
  • 7 - Country Monitor
  • 8 - Large Order Number
  • 9 - Billing/Shipping Address Mismatch
  • 10 - Risky ZIP Code
  • 11 - Suspected Freight Forwarder Check
  • 12 - Total Purchase Price Minimum
  • 13 - IP Address Velocity
  • 14 - Risky Email Address Domain Check
  • 15 - Risky Bank Identification Number (BIN) Check
  • 16 - Risky IP Address Range
  • 17 - PayPal Fraud Model
invoicePass-through variable you can use to identify your Invoice Number for this purchase. If omitted, no variable is passed back.
Length: 127 characters
item_namexItem name as passed by you, the merchant. Or, if not passed by you, as entered by your customer. If this is a shopping cart transaction, PayPal will append the number of the item (e.g., item_name1, item_name2, and so forth).
Length: 127 characters
item_numberxPass-through variable for you to track purchases. It will get passed back to you at the completion of the payment. If omitted, no variable will be passed back to you. If this is a shopping cart transaction, PayPal will append the number of the item (e.g., item_number1, item_number2, and so forth)
Length: 127 characters
mc_currency
  • For payment IPN notifications, this is the currency of the payment.
  • For non-payment subscription IPN notifications (i.e., txn_type= signup, cancel, failed, eot, or modify), this is the currency of the subscription.
  • For payment subscription IPN notifications, it is the currency of the payment (i.e., txn_type = subscr_payment)
mc_feeTransaction fee associated with the payment. mc_gross minus mc_fee equals the amount deposited into the receiver_email account. Equivalent to payment_fee for USD payments. If this amount is negative, it signifies a refund or reversal, and either of those payment statuses can be for the full or partial amount of the original transaction fee.
mc_grossFull amount of the customer's payment, before transaction fee is subtracted. Equivalent to payment_gross for USD payments. If this amount is negative, it signifies a refund or reversal, and either of those payment statuses can be for the full or partial amount of the original transaction.
mc_gross_xThe amount is in the currency of mc_currency, where x is the shopping cart detail item number. The sum of mc_gross_x should total mc_gross.
mc_handlingTotal handling amount associated with the transaction.
mc_shippingTotal shipping amount associated with the transaction.
mc_shippingxThis is the combined total of shipping1 and shipping2 Website Payments Standard variables, where x is the shopping cart detail item number. The shippingx variable is only shown when the merchant applies a shipping amount for a specific item. Because profile shipping might apply, the sum of shippingx might not be equal to shipping.
memoMemo as entered by your customer in PayPal Website Payments note field.
Length: 255 characters
num_cart_itemsIf this is a PayPal Shopping Cart transaction, number of items in cart.
option_name1Option 1 name as requested by you. PayPal appends the number of the item where x represents the number of the shopping cart detail item (e.g., option_name1, option_name2).
Length: 64 characters
option_name2Option 2 name as requested by you. PayPal appends the number of the item where x represents the number of the shopping cart detail item (e.g., option_name2, option_name2).
Length: 64 characters
option_selection1Option 1 choice as entered by your customer.
PayPal appends the number of the item where x represents the number of the shopping cart detail item (e.g., option_selection1, option_selection2).
Length: 200 characters
option_selection2Option 2 choice as entered by your customer.
PayPal appends the number of the item where x represents the number of the shopping cart detail item (e.g., option_selection1, option_selection2).
Length: 200 characters
payer_statusWhether the customer has a verified PayPal account.
  • verified – Customer has a verified PayPal account.
  • unverified – Customer has an unverified PayPal account.
payment_dateTime/Date stamp generated by PayPal, in the following format: HH:MM:SS Mmm DD, YYYY PDT
Length: 28 characters
payment_feeUSD transaction fee associated with the payment. payment_gross minus payment_fee equals the amount deposited into the receiver email account. Is empty for non-USD payments. If this amount is negative, it signifies a refund or reversal, and either of those payment statuses can be for the full or partial amount of the original transaction fee.
Note: This is a deprecated field. Use mc_fee instead.
payment_fee_xIf the payment is USD, then the value is the same as that for mc_fee_x, where x is the record number; if the currency is not USD, then this is an empty string.
Note: This is a deprecated field. Use mc_fee_ x instead.
payment_grossFull USD amount of the customer's payment, before transaction fee is subtracted. Will be empty for non-USD payments. This is a legacy field replaced by mc_gross. If this amount is negative, it signifies a refund or reversal, and either of those payment statuses can be for the full or partial amount of the original transaction.
payment_gross_xIf the payment is USD, then the value for this is the same as that for the mc_gross_x, where x is the record number the mass pay item. If the currency is not USD, this is an empty string.
Note: This is a deprecated field. Use mc_gross_ x instead.
payment_statusThe status of the payment:

Canceled_Reversal: A reversal has been canceled. For example, you won a dispute with the customer, and the funds for the transaction that was reversed have been returned to you.

Completed: The payment has been completed, and the funds have been added successfully to your account balance.

Created: A German ELV payment is made using Express Checkout.

Denied: The payment was denied. This happens only if the payment was previously pending because of one of the reasons listed for the pending_reason variable or the Fraud_Management_Filters_x variable.

Expired: This authorization has expired and cannot be captured.

Failed: The payment has failed. This happens only if the payment was made from your customer's bank account.

Pending: The payment is pending. See pending_reason for more information.

Refunded: You refunded the payment.

Reversed: A payment was reversed due to a chargeback or other type of reversal. The funds have been removed from your account balance and returned to the buyer. The reason for the reversal is specified in the ReasonCode element.

Processed: A payment has been accepted.

Voided: This authorization has been voided.

payment_typeecheck: This payment was funded with an eCheck.
instant: This payment was funded with PayPal balance, credit card, or Instant Transfer.
pending_reason

This variable is set only if payment_status is Pending.

address: The payment is pending because your customer did not include a confirmed shipping address and your Payment Receiving Preferences is set yo allow you to manually accept or deny each of these payments. To change your preference, go to the Preferences section of your Profile.

authorization: You set the payment action to Authorization and have not yet captured funds.

echeck: The payment is pending because it was made by an eCheck that has not yet cleared.

intl: The payment is pending because you hold a non-U.S. account and do not have a withdrawal mechanism. You must manually accept or deny this payment from your Account Overview.

multi-currency: You do not have a balance in the currency sent, and you do not have your profiles's Payment Receiving Preferences option set to automatically convert and accept this payment. As a result, you must manually accept or deny this payment.

order: You set the payment action to Order and have not yet captured funds.

paymentreview: The payment is pending while it is reviewed by PayPal for risk.

regulatory_review: The payment is pending because PayPal is reviewing it for compliance with government regulations. PayPal will complete this review within 72 hours. When the review is complete, you will receive a second IPN message whose payment_status/reason code variables indicate the result.

unilateral: The payment is pending because it was made to an email address that is not yet registered or confirmed.

upgrade: The payment is pending because it was made via credit card and you must upgrade your account to Business or Premier status before you can receive the funds. upgrade can also mean that you have reached the monthly limit for transactions on your account.

verify: The payment is pending because you are not yet verified. You must verify your account before you can accept this payment.

other: The payment is pending for a reason other than those listed above. For more information, contact PayPal Customer Service.

protection_eligibilityExpandedSellerProtection: Seller is protected by Expanded seller protection

SellerProtection: Seller is protected by PayPal's Seller Protection Policy

None: Seller is not protected under Expanded seller protection nor the Seller Protection Policy

quantityQuantity as entered by your customer or as passed by you, the merchant. If this is a shopping cart transaction, PayPal appends the number of the item (e.g. quantity1, quantity2).
reason_code

This variable is set if payment_status is Reversed, Refunded, Canceled_Reversal, or Denied.

adjustment_reversal: Reversal of an adjustment.

admin_fraud_reversal: The transaction has been reversed due to fraud detected by PayPal administrators.

admin_reversal: The transaction has been reversed by PayPal administrators.

buyer-complaint: The transaction has been reversed due to a complaint from your customer.

chargeback: The transaction has been reversed due to a chargeback by your customer.

chargeback_reimbursement: Reimbursement for a chargeback.

chargeback_settlement: Settlement of a chargeback.

guarantee: The transaction has been reversed because your customer exercised a money-back guarantee.

other: Unspecified reason.

refund: The transaction has been reversed because you gave the customer a refund.

regulatory_block: PayPal blocked the transaction due to a violation of a government regulation. In this case, payment_status is Denied.

regulatory_reject: PayPal rejected the transaction due to a violation of a government regulation and returned the funds to the buyer. In this case, payment_status is Denied.

regulatory_review_exceeding_sla: PayPal did not complete the review for compliance with government regulations within 72 hours, as required. Consequently, PayPal auto-reversed the transaction and returned the funds to the buyer. In this case, payment_status is Denied. Note that "sla" stand for "service level agreement".

unauthorized_claim: The transaction has been reversed because it was not authorized by the buyer.

unauthorized_spoof: The transaction has been reversed due to a customer dispute in which an unauthorized spoof is suspected.

Note: Additional codes may be returned.
remaining_settleRemaining amount that can be captured with Authorization and Capture
settle_amountAmount that is deposited into the account's primary balance after a currency conversion from automatic conversion (through your Payment Receiving Preferences) or manual conversion (through manually accepting a payment).
settle_currencyCurrency of settle_amount.
shippingShipping charges associated with this transaction.
Format: unsigned, no currency symbol, two decimal places.
shipping_methodThe name of a shipping method from the Shipping Calculations section of the merchant's account profile. The buyer selected the named shipping method for this transaction.
taxAmount of tax charged on payment. PayPal appends the number of the item (e.g., item_name1, item_name2). The taxx variable is included only if there was a specific tax amount applied to a particular shopping cart item. Because total tax may apply to other items in the cart, the sum of taxx might not total to tax.
transaction_entityAuthorization and Capture transaction entity

Auction Variables

Auction information identifies the auction for which a payment is made and additional information about the auction.

Variable Name

Description

auction_buyer_idThe customer's auction ID.
Length: 64 characters
auction_closing_dateThe auction's close date, in the following format: HH:MM:SS DD Mmm YY, YYYY PST
Length: 28 characters
auction_multi_itemThe number of items purchased in multi-item auction payments. It allows you to count the mc_gross or payment_gross for the first IPN you receive from a multi-item auction (auction_multi_item), since each item from the auction will generate an Instant Payment Notification showing the amount for the entire auction.
for_auctionThis is an auction payment—payments made using Pay for ebay Items or Smart Logos—as well as Send Money/Money Request payments with the type eBay items or Auction Goods (non-eBay).

Mass Pay Variables

Mass pay information identifies the amounts and status of transactions related to mass payments, including fees.

Variable Name

Description

masspay_txn_id_xFor Mass Payments, a unique transaction ID generated by the PayPal system, where x is the record number of the mass pay item
Length: 19 characters
mc_currency_xFor Mass Payments, the currency of the amount and fee, where x is the record number the mass pay item
mc_fee_xFor Mass Payments, the transaction fee associated with the payment, where x is the record number the mass pay item
mc_gross_xThe gross amount for the amount, where x is the record number the mass pay item
mc_handlingxThe x is the shopping cart detail item number. The handling_cart cart-wide Website Payments variable is also included in the mc_handling variable; for this reason, the sum of mc_handlingx might not be equal to mc_handling
payment_dateFor Mass Payments, the first IPN is the date/time when the record set is processed. Format: HH:MM:SS DD Mmm YYYY PST
Length: 28 characters
payment_statusCompleted: For Mass Payments, this means that all of your payments have been claimed, or after a period of 30 days, unclaimed payments have been returned to you.
Denied: For Mass Payments, this means that your funds were not sent and the Mass Payment was not initiated. This may have been caused by lack of funds.
Processed: Your Mass Payment has been processed and all payments have been sent.
reason_code_x

This variable is set only if status = Failed.
1001 Receiver's account is invalid
1002 Sender has insufficient funds
1003 User's country is not allowed
1004 User's credit card is not in the list of allowed countries of the gaming merchant
3004 Cannot pay self
3014 Sender's account is locked or inactive
3015 Receiver's account is locked or inactive
3016 Either the sender or receiver exceeded the transaction limit
3017 Spending limit exceeded
3047 User is restricted
3078 Negative balance
3148 Receiver's address is in a non-receivable country or a PayPal zero country
3535 Invalid currency
3547 Sender's address is located in a restricted State
3558 Receiver's address is located in a restricted State
3769 Market closed and transaction is between 2 different countries
4001 Internal error
4002 Internal error
8319 Zero amount
8330 Receiving limit exceeded
11711 Per-transaction sending limit exceeded
14159 Transaction currency cannot be received by the recipient
14550 Currency compliance
14764 Regulatory review - Pending
14765 Regulatory review - Blocked
14767 Receiver is unregistered
14768 Receiver is unconfirmed
14769 Youth account recipient
14800 POS cumulative sending limit exceeded

receiver_email_xFor Mass Payments, the primary email address of the payment recipient, where x is the record number of the mass pay item.
Length: 127 characters
status_xFor Mass Payments, the status of the payment, where x is the record number
Completed: The payment has been processed, regardless of whether this was originally a unilateral payment
Failed: The payment failed because of an insufficient PayPal balance.
Returned: Payment has been returned after 30 days.
Reversed: This is for unilateral payments that were not claimed after 30 days and have been returned to the sender. Or the funds have been returned because the Receiver's account was locked.
Unclaimed: This is for unilateral payments that are unclaimed.
Pending: The payment is pending because it is being reviewed for compliance with government regulations. The review will be completed and the payment status will be updated within 72 hours.
Blocked: This payment was blocked due to a violation of government regulations.
unique_id_xFor Mass Payments, the unique ID from input, where x is the record number. This allows the merchant to cross-reference the payment
Length: 13 characters

Recurring Payments Variables

Recurring payments information identifies the amounts and status associated with recurring payments transactions.

Variable Name

Description

amountAmount of recurring payment
amount_per_cycleAmount of recurring payment per cycle
initial_payment_amountInitial payment amount for recurring payments
next_payment_dateNext payment date for a recurring payment
outstanding_balanceOutstanding balance for recurring payments
payment_cyclePayment cycle for recurring payments
period_typeKind of period for a recurring payment
product_nameProduct name associated with a recurring payment
product_typeProduct name associated with a recurring payment
profile_statusProfile status for a recurring payment
recurring_payment_idRecurring payment ID
rp_invoice_idThe merchant's own unique reference or invoice number, which can be used to uniquely identify a profile.
Length: 127 single-byte alphanumeric characters
time_createdWhen a recurring payment was created
Table 1. Summary of recurring payment variables

Variables

Profile created message

Recurring payment message

Basic Information  
business X
receiver_emailXX
receiver_id X
Transaction Information  
payment_status X
payment_type X
payment_date X
txn_id X
initial_payment_statusX 
initial_payment_txn_id X
txn_typerecurring_payment_profile_createdrecurring_payment
Currency and Exchange  
mc_gross X
mc_fee X
mc_currency X
payment_gross X
currency_codeXX
payment_fee X
Buyer Information  
first_nameXX
last_nameXX
address_name X
address_street X
address_city X
address_state X
address_zip X
address_country X
payer_emailXX
payer_idXX
payer_statusXX
residence_countryXX
address_country_code X
address_status X
Recurring Payment  
recurring_payment_idXX
rp_invoice_idXX
product_nameXX
product_typeXX
period_typeXX
payment_cycleXX
outstanding_balanceXX
amount_per_cycleXX
initial_payment_amountXX
profile_statusXX
amountXX
time_createdXX
next_payment_dateXX
Other Information  
notify_versionXX
charsetXX

Subscription Variables

Subscription information identifies the amounts and parameters associated with subscription transactions.

Variable Name

Description

amount1Amount of payment for trial period 1 for USD payments; otherwise blank (optional).
amount2Amount of payment for trial period 2 for USD payments; otherwise blank (optional).
amount3Amount of payment for regular subscription period for USD payments; otherwise blank.
mc_amount1Amount of payment for trial period 1, regardless of currency (optional).
mc_amount2Amount of payment for trial period 2, regardless of currency (optional).
mc_amount3Amount of payment for regular subscription period, regardless of currency.
password(optional) Password generated by PayPal and given to subscriber to access the subscription (password will be encrypted).
Length: 24 characters
period1(optional) Trial subscription interval in days, weeks, months, years (example: a 4 day interval is "period1: 4 D").
period2(optional) Trial subscription interval in days, weeks, months, or years.
period3Regular subscription interval in days, weeks, months, or years.
reattemptIndicates whether reattempts should occur upon payment failures (1 is yes, blank is no).
recur_timesThe number of payment installments that will occur at the regular rate.
recurringIndicates whether regular rate recurs (1 is yes, blank is no).
retry_atDate PayPal will retry a failed subscription payment.
subscr_dateStart date or cancellation date depending on whether transaction is subscr_signup or subscr_cancel.
Time/Date stamp generated by PayPal, in the following format: HH:MM:SS DD Mmm YY, YYYY PST
subscr_effectiveDate when the subscription modification will be effective (only for txn_type = subscr_modify).
Time/Date stamp generated by PayPal, in the following format: HH:MM:SS DD Mmm YY, YYYY PST
subscr_idID generated by PayPal for the subscriber.
Length: 19 characters
username(optional) Username generated by PayPal and given to subscriber to access the subscription.
Length: 64 characters
Table 2. Summary of subscription variables

Variable

Signup

Cancel

Modify

USD Payment

Multi-CurrencyPayment

Re-fund

Failed

EOT

Basic Information

businessXXXXX XX
receiver_emailXXXXX XX
receiver_id   XX   
item_nameXXXXX XX
item_numberXXXXX XX

Advanced and Custom Information

invoiceXXXXX XX
customXXXXX XX
option_name1XXXXX XX
option_selection1XXXXX XX
option_name2XXXXX XX
option_selection2XXXXX XX

Transaction Information

payment_status   XXX  
pending_reason   XX   
reason_code   XX   
payment_date   XX   
txn_id   XX   
parent_txn_id   XX   
txn_typesubscr_ signupsubscr_ cancelsubscr_ modify

subscr_payment

 subscr_ failedsubscr_eot

Currency and Exchange information

mc_gross   XX   
mc_fee   XX   
mc_currencyXXXXX XX
settle_amount   XX   
exchange_rate   XX   
payment_gross   X  XX
payment_fee   X    

Buyer Information

first_nameXXXXX XX
last_nameXXXXX XX
payer_business_nameXXXXX X 
address_nameXXXXX X 
address_streetXXXXX X 
address_cityXXXXX X 
address_stateXXXXX X 
address_zipXXXXX X 
address_ countryXXXXX X 
payer_emailXXXXX XX
payer_idXXXXX XX
payer_statusXXXXX XX
payment_type   XX   

Subscription Information

subscr_dateXXX     
subscr_ effective  X     
period1XXX     
period2XXX     
period3XXX     
amount1XXX     
amount2XXX     
amount3XXX     
mc_amount1XXX     
mc_amount2XXX     
mc_amount3XXX     
recurringXXX     
reattemptXXX     
retry_at      X 
recur_timesXXX     
usernameXXXXX XX
passwordXXXXX XX
subscr_idXXXXX XX

Dispute Resolution Variables

Dispute resolution information identifies the case ID and status associated with a dispute.

Variable Name

Description

case_creation_dateDate and time case was registered, in the following format: HH:MM:SS DD Mmm YY, YYYY PST
case_idCase identification number.
Format: PP-nnn-nnn-nnn-nnn where n is any numeric character.
case_type
  • chargeback: A buyer has filed a chargeback with his credit card company, which has notified PayPal of the reason for the chargeback.
  • complaint: A buyer has logged a complaint through the PayPal Resolution Center.
  • dispute: A buyer and seller post communications to one another through the Resolution Center to try to work out issues without intervention by PayPal.
reason_codeReason for the case.
Values for case_type set to complaint:
  • non_receipt: Buyer claims that he did not receive goods or service.
  • not_as_described: Buyer claims that the goods or service received differ from merchant's description of the goods or service.
  • unauthorized_claim: Buyer claims that an unauthorized payment was made for this particular transaction.

Values for case_type set to chargeback:

  • unauthorized
  • adjustment_reimburse: A case that has been resolved and closed requires a reimbursement.
  • non_receipt: Buyer claims that he did not receive goods or service.
  • duplicate: Buyer claims that a possible duplicate payment was made to the merchant.
  • merchandise: Buyer claims that the received merchandise is unsatisfactory, defective, or damaged.
  • special: Some other reason. Usually, special indicates a credit card processing error for which the merchant is not responsible and for which no debit to the merchant will result. PayPal must review the documentation from the credit card company to determine the nature of the dispute and possibly contact the merchant to resolve it.

Global Shipping Program Message Variables

PayPal generates an IPN message for transactions related to ebay's Global Shipping Program. In particular, these messages relate to the Third Party Litigator (3PL) domestic fulfillment center address where merchants should ship merchandise intended for buyers.

Variable

Description

fulfillment_address_countryCountry of fulfillment center address Length: 64 characters
fulfillment_address_cityCity of fulfillment center address Length: 40 characters
fulfillment_address_country_codeISO 3166 country code associated with fulfillment center address Length: 2 characters
fulfillment_address_nameName used with fulfillment center address Length: 128 characters
fulfillment_address_stateState of fulfillment center address Length: 40 characters
fulfillment_address_streetStreet of fulfillment center address Length: 200 characters
fulfillment_address_zipZip code of fulfillment center address Length: 20 characters

Pay Message Variables

PayPal generates an IPN message that contains information about the pay request or payment in response to the Adaptive Payments Pay and ExecutePayment API operations.

Variable

Description

transaction_typeThe type of transaction. Possible values are:
  • Adaptive Payment PAY
    This notification occurs when is a payment is made due to a Pay Request. The variables for the Adaptive Payment Pay notification are similar to the PaymentDetailsResponse fields.
  • Adjustment
    This can be for a chargeback, reversal, or refund; check the reason_code to see which it is.
statusThe status of the payment. Possible values are:
  • CREATED – The payment request was received; funds will be transferred once the payment is approved
  • COMPLETED – The payment was successful
  • INCOMPLETE – Some transfers succeeded and some failed for a parallel payment or, for a delayed chained payment, secondary receivers have not been paid
  • ERROR – The payment failed and all attempted transfers failed or all completed transfers were successfully reversed
  • REVERSALERROR – One or more transfers failed when attempting to reverse a payment
  • PROCESSING – The payment is in progress
  • PENDING – The payment is awaiting processing
sender_emailSender's email address.
action_typeWhether the Pay API is used with or without the SetPaymentOptions and ExecutePayment API operations. Possible values are:
  • PAY – If you are not using the SetPaymentOptions and ExecutePayment API operations
  • CREATE – If you are using the SetPaymentOptions and ExecutePayment API operations
payment_request_dateThe date on which the payment request was initiated.
reverse_all_parallel_payments_on_errorWhether the payment request specified to reverse parallel payments if an error occurs. Possible values are:
  • true – Each parallel payment is reversed if an error occurs
  • false – Only incomplete payments are reversed (default)
transaction[n].idThe transaction ID, where [n] is a number from 0 to 5. For simple, single receiver payments, this number will be 0. Numbers larger than 0 indicate the payment to a particular receiver in chained and parallel payments.
transaction[n].statusThe transaction status, where [n] is a number from 0 to 5. For simple single-receiver payments, this number will be 0. Numbers larger than 0 indicate the payment to a particular receiver in chained and parallel payments.
Possible values are:
  • Completed
  • Pending
  • Refunded
transaction[n].id_for_senderThe transaction ID for the sender, where [n] is a number from 0 to 5. For simple, single receiver payments, this number will be 0. Numbers larger than 0 indicate the payment to a particular receiver in chained and parallel payments.
transaction[n].status_for_sender_txnThe transaction status, where [n] is a number from 0 to 5. For simple single-receiver payments, this number will be 0. Numbers larger than 0 indicate the payment to a particular receiver in chained and parallel payments.
Possible values are:
  • COMPLETED – The sender's transaction has completed
  • PENDING – The transaction is awaiting further processing
  • CREATED – The payment request was received; funds will be transferred once approval is received
  • PARTIALLY_REFUNDED – Transaction was partially refunded
  • DENIED – The transaction was rejected by the receiver
  • PROCESSING – The transaction is in progress
  • REVERSED – The payment was returned to the sender
  • REFUNDED – The payment was refunded
  • FAILED – The payment failed
transaction[n].refund_idThe identification number for the refund
transaction[n].refund_amountThe amount that was refunded.
transaction[n].refund_account_chargedThe email address of the debit account of the refund.
transaction[n].receiverThe receiver's email address for the transaction
transaction[n].invoiceIdThe invoice number for this transaction
transaction[n].amountThe payment amount of the transaction
transaction[n].is_primary_receiverWhether there is a primary receiver for this transaction, which indicates whether the transaction is a chained payment.
Possible values are:
  • true – There is a primary receiver (chained payment)
  • false – There is no primary receiver (simple or parallel payment)
return_urlThe URL to which the sender's browser is redirected after approving a payment on paypal.com. Use the pay key to identify the payment as follows: payKey=${payKey}.
cancel_urlThe URL to which the sender's browser is redirected if the sender cancels the approval for a payment on paypal.com. Use the pay key to identify the payment as follows: payKey=${payKey}.
ipn_notification_urlThe URL to which all IPN messages for this payment are sent.
pay_keyThe pay key that identifies this payment. This is a token that is assigned by the Pay API after a PayRequest message is received and can be used in other Adaptive Payments APIs as well as the cancelURL and returnURL to identify this payment. The pay key is valid for 3 hours.
memoA note associated with the payment.
fees_payerThe payer of PayPal fees. Possible values are:
  • SENDER – Sender pays all fees (for personal, implicit simple/parallel payments; do not use for chained or unilateral payments)
  • PRIMARYRECEIVER – Primary receiver pays all fees (chained payments only)
  • EACHRECEIVER – Each receiver pays their own fee (default, personal and unilateral payments)
  • SECONDARYONLY – Secondary receivers pay all fees (use only for chained payments with one secondary receiver)
trackingIdThe tracking ID that was specified for this payment in the PaymentDetailsRequest message.
preapproval_keyThe preapproval key returned after a PreapprovalRequest, or the preapproval key that identifies the preapproval key sent with a PayRequest.
reason_codeWhether this transaction is a chargeback, partial, or reversal. Possible values are:
  • Chargeback Settlement – Transaction is a chargeback
  • Admin reversal – Transaction was reversed by PayPal administrators
  • Refund – Transaction was partially or fully refunded

Preapproval Message Variables

PayPal generates an IPN message that contains information about a preapproval in response to the Adaptive Payments Preapproval API operation.

Variable

Description

transaction_typeThe type of transaction. For a preapproval, this variable returns Adaptive Payment Preapproval.
Note: If this variable is set to Adaptive Payment Pay or Adjustment, refer to the Pay Message Variable section.
preapproval_keyThe preapproval key returned after a PreapprovalRequest.
approvedWhether the preapproval request was approved. Possible values are:
  • true – The preapproval was approved
  • false – The preapproval was denied
cancel_urlThe URL to which the sender's browser is redirected if the sender decides to cancel the preapproval as requested. Use the preapproval key to identify the payment as follows: preapprovalKey=${preapprovalKey}
current_number_of_paymentsThe current number of payments made for this preapproval.
current_total_amount_of_all_paymentsThe current total of payments made for this preapproval.
current_period_attemptsThe current number of attempts this period for this preapproval.
currencyCodeThe currency code. Possible values are:
  • Australian Dollar – AUD
  • Brazilian Real – BRL
    Note: The Real is supported as a payment currency and currency balance only for Brazilian PayPal accounts.
  • Canadian Dollar – CAD
  • Czech Koruna – CZK
  • Danish Krone – DKK
  • Euro – EUR
  • Hong Kong Dollar – HKD
  • Hungarian Forint – HUF
  • Israeli New Sheqel – ILS
  • Japanese Yen – JPY
  • Malaysian Ringgit – MYR
    Note: The Ringgit is supported as a payment currency and currency balance only for Malaysian PayPal accounts.
  • Mexican Peso – MXN
  • Norwegian Krone – NOK
  • New Zealand Dollar – NZD
  • Philippine Peso – PHP
  • Polish Zloty – PLN
  • Pound Sterling – GBP
  • Singapore Dollar – SGD
  • Swedish Krona – SEK
  • Swiss Franc – CHF
  • Taiwan New Dollar – TWD
  • Thai Baht – THB
  • Turkish Lira – TRY
    Note: The Turkish Lira is supported as a payment currency and currency balance only for Turkish PayPal accounts.
  • U.S. Dollar – USD
date_of_monthThe day of the month on which a monthly payment is to be made. A number between 1 and 31 indicates the day of the month. A value of 0 indicates that the payment can be made on any day.
day_of_weekThe day of the week that a weekly payment is to be made. Possible values are:
  • NO_DAY_SPECIFIED
  • SUNDAY
  • MONDAY
  • TUESDAY
  • WEDNESDAY
  • THURSDAY
  • FRIDAY
  • SATURDAY
starting_dateFirst date for which the preapproval is valid.
ending_dateLast date for which the preapproval is valid. Time is currently not supported.
max_total_amount_of_all_paymentsThe preapproved maximum total amount of all payments.
max_amount_per_paymentThe preapproved maximum amount of all payments.
max_number_of_paymentsThe maximum number of payments that is preapproved.
payment_periodThe payment period.
Possible values are:
  • NO_PERIOD_SPECIFIED
  • DAILY
  • WEEKLY
  • BIWEEKLY
  • SEMIMONTHLY
  • MONTHLY
  • ANNUALLY
pin_typeWhether a personal identification number (PIN) is required. It is one of the following values:
  • NOT_REQUIRED – A PIN is not required
  • REQUIRED – A PIN is required
sender_emailThe sender's email address.

Adaptive Accounts IPN Messages

PayPal sends an IPN message whenever a PayPal account is created using the CreateAccount API operation.

Field

Description

notify_versionMessage's version number
first_nameAccount holder's first name
last_nameAccount holder's last name
verify_signEncrypted string used to validate the authenticity of the transaction
charsetCharacter set
account_keyAccount key returned by the CreateAccount API operation
confirmation_codeConfirmation code
event_typeThe kind of event:
  • ACCOUNT_CONFIRMED indicates that the account holder has set a password and the account has been created.
  • LOGIN_CONFIRMED indicates that the account holder logged into the account.

Example IPN message in response to CreateAccount request

notify_version=UNVERSIONED&first_name=Someone&verify_sign=AI.LzRiNYreJbZLZ8BV5FbGKL8hSAupAtXf3haOHWI2NmcJ5C4VqdQrx&charset=windows-1252&last_name=Something&account_key=AA6N5043354R131103K&confirmation_code=15531193754629193930  

Example IPN message in response to account holder setting the password

first_name=Someone&account_key=AA-6N5043354R131103K&notify_version=UNVERSIONED&charset=windows-1252&email_address=abawany-20110208-01%40paypal.com&event_type=%5BACCOUNT_CONFIRMED%5D&last_name=Something&verify_sign=AcIPKnsgPsoX2ONJgU17uAl9h-ZIAKJMRvhEULLvD9mOzH3WjdRNfEte  
Note: This message indicates that the account setup is complete.

Example IPN message in response to account login

first_name=Someone&account_key=AA-6N5043354R131103K&notify_version=UNVERSIONED&charset=windows-1252&email_address=abawany-20110208-01%40paypal.com&event_type=%5BLOGIN_CONFIRMED%5D&last_name=Something&verify_sign=ANqF6tuR41eB.S.2I9dCskJuSSvrAI8Monbec4U2PZCnoKYffnv156mN  

PDT-Specific Variables

PDT variables have the same names as IPN variables. Some variables, however, apply only to PDT.

Variable

Description

amtAmount of the transaction
ccCurrency code
cmCustom message
sig 
stTransaction status
txTransaction ID/PDT token
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值