Integration Guide
Table Of Contents
- Preface
- Introduction
- Payment Data Transfer
- Instant Payment Notification (IPN)
- Downloadable History Log
- IPN and PDT Variables
- Data Type, Maximum Field Lengths, and URL Encoding
- About These Tables of Variables
- test_ipn Variable in Sandbox
- IPN Variables in All Posts
- Buyer Information
- Basic Information
- Advanced and Custom Information
- Shopping Cart Information
- Currency and Currency Exchange
- Auctions
- Mass Payment
- Subscriptions Variables
- Dispute Notification Variables
- PDT-Specific Variables
- Downloadable History Log Columns and Values
- Country Codes
Instant Payment Notification (IPN)
Using IPN with Multiple Currencies
30 August 2005 Order Management Integration Guide
payment_gross =
payment_fee =
mc_gross =100
mc_fee = 3.00
mc_currency = CAD
Example 3
If the account is set to automatically convert payments, these variables will be used to show
the conversion. This example is for a user with a USD balance who receives a payment of 100
GBP:
EXAMPLE 3.3 Mutli-currency IPN: Automatic Conversion of GBP Payment
payment_status = Completed
payment_gross =
payment_fee =
mc_gross = 100
mc_fee = 3.00
mc_currency = GBP
settle_amount = 145.5
settle_currency = USD
exchange_rate = 1.5
Example 4
If a payment received is pending due to pending_reason = multi_currency, the first IPN
received would not have the settle_amount, settle_currency, or exchange_rate.
EXAMPLE 3.4 Mutli-currency IPN: Pending Payment
payment_status = Pending
pending_reason = multi_currency
payment_gross =
mc_gross = 100
mc_currency = GBP
The second IPN contains information about settling the payment. If the payment is accepted
into the account’s primary currency, which is USD in the following example:
EXAMPLE 3.5 Pending - Convert to Primary Currency
payment_status = Completed
payment_gross =
payment_fee =
mc_gross = 100
mc_fee = 3.00
mc_currency = GBP
settle_amount = 145.5
settle_currency = USD
exchange_rate = 1.5
If the payment is accepted into a balance of the same currency: