News:

Looking for documentation? Take a look on our wiki

Main Menu

PayPal and CDN

Started by davix10, October 14, 2019, 09:57:50 AM

Previous topic - Next topic

davix10

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

Studio 42

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.

GJC Web Design

if 66.211.170.66 is dynamic then you can switch off the check in the paypal plugin
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

davix10

Ok, I switch off the check about IP connection.

Thanks!

ssc3

#4
That looks like real customer data from the logs.

I would remove those.
Virtuemart Payment Plugins
https://plugins.online-store.co.uk

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation