VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: davix10 on October 14, 2019, 09:57:50 AM

Title: PayPal and CDN
Post by: davix10 on October 14, 2019, 09:57:50 AM
Hi, since I added the CDN to my site, PayPal payments cause an error even if it has been successful. How can I solve the problem?


2019-10-11 08:10:08 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 540 paymentcurrency 47 orderusercurrency9
2019-10-11 08:16:32 DEBUG PaymentNotification, paypal_data:: Array
(
    [mc_gross] => 540.00
 
    [protection_eligibility] => Ineligible

    [notify_version] => 3.9

    [quantity] => 1
   
    [payment_type] => instant

    [shipping_discount] => 0.00
    [insurance_amount] => 0.00
   
    [discount] => 0.00
    [mc_currency] => EUR
    [item_number] =>
    [residence_country] => AU

    [shipping_method] => Default
    [transaction_subject] =>
    [payment_gross] =>
    [shipping] => 0.00

)
2019-10-11 08:16:32 DEBUG PaymentNotification, order_number::
2019-10-11 08:16:32 DEBUG PaymentNotification, virtuemart_paymentmethod_id:: 1
2019-10-11 08:16:32 DEBUG checkPaypalIps PRODUCTION: Array
(
    [0] => 66.211.169.17
    [1] => 173.0.84.8
    [2] => 173.0.88.8
    [3] => 173.0.88.40
    [4] => 173.0.84.40
    [5] => 173.0.81.33
    [6] => 173.0.81.1
)
2019-10-11 08:16:32 DEBUG checkPaypalIps REMOTE ADDRESS: 66.211.170.66
2019-10-11 08:16:32 ERROR checkPaypalIps: Error with REMOTE IP ADDRESS = 66.211.170.66.
                        The remote address of the script posting to this notify script does not match a valid PayPal IP address

            These are the valid IP Addresses: 66.211.169.17,173.0.84.8,173.0.88.8,173.0.88.40,173.0.84.40,173.0.81.33,173.0.81.1The Order ID received was: 8IU309
2019-10-11 08:16:49 DEBUG plgVmOnPaymentResponseReceived: stdClass Object
(
    [id] => 25
    [virtuemart_order_id] => 26
    [order_number] => 8IU309
    [virtuemart_paymentmethod_id] => 1
   
    [payment_order_total] => 540.00000
    [payment_currency] => 47
    [email_currency] => 47
    [cost_per_transaction] => 0.00
    [cost_percent_total] => 0.00
    [tax_id] => 0
    [paypal_custom] => 4b495ddb1e7dfb6365f34e44f47bcfe9
    [paypal_method] => 0
    [paypal_response_mc_gross] => 0.00
    [paypal_response_mc_currency] => 0
    [paypal_response_invoice] => 0
    [paypal_response_protection_eligibility] => 0
    [paypal_response_payer_id] => 0
    [paypal_response_tax] => 0.00
    [paypal_response_payment_date] => 0
    [paypal_response_payment_status] => 0
    [paypal_response_pending_reason] => 0
    [paypal_response_mc_fee] => 0.00
    [paypal_response_payer_email] => 0
    [paypal_response_last_name] => 0
    [paypal_response_first_name] => 0
    [paypal_response_business] => 0
    [paypal_response_receiver_email] => 0
    [paypal_response_transaction_subject] => 0
    [paypal_response_residence_country] => 0
    [paypal_response_txn_id] => 0
    [paypal_response_txn_type] => 0
    [paypal_response_parent_txn_id] => 0
    [paypal_response_case_creation_date] => 0
    [paypal_response_case_id] => 0
    [paypal_response_case_type] => 0
    [paypal_response_reason_code] => 0
    [paypalresponse_raw] => 0
    [paypal_fullresponse] => 0
    [created_on] => 2019-10-11 08:10:08
    [created_by] => 1075
    [modified_on] => 2019-10-11 08:10:08
    [modified_by] => 1075
    [locked_on] => 0000-00-00 00:00:00
    [locked_by] => 0
)


VirtueMart 3.6.2 10159
Title: Re: PayPal and CDN
Post by: Studio 42 on October 14, 2019, 10:46:21 AM
66.211.170.66 is a vaild paypal adress but is not in the know notification servers.
Add 66.211.170.66 in the plugin list of IP and all should work.
Title: Re: PayPal and CDN
Post by: GJC Web Design on October 14, 2019, 10:53:10 AM
if 66.211.170.66 is dynamic then you can switch off the check in the paypal plugin
Title: Re: PayPal and CDN
Post by: davix10 on October 14, 2019, 11:30:31 AM
Ok, I switch off the check about IP connection.

Thanks!
Title: Re: PayPal and CDN
Post by: ssc3 on October 15, 2019, 16:49:10 PM
That looks like real customer data from the logs.

I would remove those.
Title: Re: PayPal and CDN
Post by: GJC Web Design on October 15, 2019, 17:48:43 PM
indeed .. done