Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal wpp not sending information to paypal


Recommended Posts

Posted

Hi

 

I was wondering if someone could point me in the right direction on this?

 

I have installed paypal_wpp_1.0.0 for Direct Payments and Express Checkout.

 

The contribution appears to be connecting to paypal but doesn't seem to be sending any data...???

 

When I go through the express checkout I get directed to paypal to login but there doesn't appear to be any order totals or product information passed to paypal. Subsiquently when i login and get bounced back to my site for payment, I just get the option to select another payment option.

 

When I try to use the Direct Payment option I get the following error when I get sent to paypal:

 

Warning:
Invalid argument supplied for foreach() in /var/www/vhosts/thequalitycv.co.uk/httpdocs/cat/includes/modules/payment/paypal_wpp.php on line 1206

 

Warning:
Invalid argument supplied for foreach() in /var/www/vhosts/thequalitycv.co.uk/httpdocs/cat/includes/modules/payment/paypal_wpp.php on line 1108

 

Warning:
Cannot modify header information - headers already sent by (output started at /var/www/vhosts/thequalitycv.co.uk/httpdocs/cat/includes/modules/payment/paypal_wpp.php:1206) in /var/www/vhosts/thequalitycv.co.uk/httpdocs/cat/includes/functions/general.php on line 29

 

It would appear that the foreach() function is not having any data passed to it to process...??? The $order_totals array doesn't seem to be being read in paypal_wpp.php

 

The error reporting I get back from paypal is as follows:

In function: before_process() - Direct Payment Did first contact attempt return error? Yes
---------------------------------------------------------------------
-------------------------------DP_DUMP-------------------------------
------------This is the information that was sent to PayPal----------
---------------------------------------------------------------------
[?xml version="1.0" encoding="utf-8"?] [soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"]
 [soap:Header]
   [RequesterCredentials xmlns="urn:ebay:api:PayPalAPI"]
     [Credentials xmlns="urn:ebay:apis:eBLBaseComponents"]
       [username]XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX[/username]
       [Password]XXXXXXXXXXXXXXXX[/Password]
       [subject][/subject]
     [/Credentials]
   [/RequesterCredentials]
 [/soap:Header]
 [soap:Body]
   [DoDirectPaymentReq xmlns="urn:ebay:api:PayPalAPI"]
     [DoDirectPaymentRequest]
       [Version xmlns="urn:ebay:apis:eBLBaseComponents"]2.0[/Version]
       [DoDirectPaymentRequestDetails xmlns="urn:ebay:apis:eBLBaseComponents"]
         [PaymentAction]Sale[/PaymentAction]
         [PaymentDetails]
           [OrderTotal currencyID="GBP"]0.00[/OrderTotal]
           [OrderDescription]Order placed on February 14, 2008, 9:37 am by zxc xcvxc (ID: 3)[/OrderDescription]
           [itemTotal currencyID="GBP"]0[/itemTotal]
           [shippingTotal currencyID="GBP"]0[/shippingTotal]
           [HandlingTotal currencyID="GBP"][/HandlingTotal]
           [TaxTotal currencyID="GBP"]0[/TaxTotal]
           [Custom]Phone: sdfdsf -- Email: [email protected][/Custom]
           [invoiceID][/invoiceID]
           [NotifyURL][/NotifyURL]
           [buttonSource][/buttonSource]
           [shipToAddress]
             [Name]zxc xcvxc[/Name]
             [street1]sdfsdf[/street1]
             [street2]sdfdssd[/street2]
             [CityName]fdsf[/CityName] 
             [stateOrProvince]sdf[/stateOrProvince]
             [PostalCode]dsfds[/PostalCode]
             [Country]GB[/Country]
           [/shipToAddress]
           [PaymentDetailsItem][Name]Senior Management package[/Name][Amount currencyID="GBP"]29.95[/Amount][Number]-[/Number][Quantity]1[/Quantity][/PaymentDetailsItem][PaymentDetailsItem][Name]Professional & Academic package[/Name][Amount currencyID="GBP"]19.95[/Amount][Number]-[/Number][Quantity]1[/Quantity][/PaymentDetailsItem][PaymentDetailsItem][Name]IT & Technical package[/Name][Amount currencyID="GBP"]19.95[/Amount][Number]-[/Number][Quantity]1[/Quantity][/PaymentDetailsItem][PaymentDetailsItem][Name]Order Total Discrepancy[/Name][Amount currencyID="GBP"]-69.85[/Amount][Number]-[/Number][Quantity]1[/Quantity][/PaymentDetailsItem]
         [/PaymentDetails]
         [CreditCard]
           [CardOwner]
             [Payer][email protected][/Payer]
             [PayerName]
             [FirstName]zxc[/FirstName]
             [LastName]xcvxc[/LastName]
             [/PayerName]
             [Address]
               [street1]sdfsdf[/street1]
               [street2]sdfdssd[/street2]
               [CityName]fdsf[/CityName] 
               [stateOrProvince]sdf[/stateOrProvince]
               [PostalCode]dsfds[/PostalCode]
               [Country]GB[/Country]
             [/Address]
           [/CardOwner]
           [CreditCardType]Visa[/CreditCardType]
           [CreditCardNumber]XXXXXXXXXXXXXXXX[/CreditCardNumber]
           [startMonth][/startMonth][startYear][/startYear]
           [ExpMonth]09[/ExpMonth]
           [ExpYear]2008[/ExpYear]
           [CVV2]XXX[/CVV2]
         [/CreditCard]
         [iPAddress]81.149.11.89[/iPAddress]
         [MerchantSessionId]cdeb4a44ff336f47eb7548d187de3936[/MerchantSessionId]
       [/DoDirectPaymentRequestDetails]
     [/DoDirectPaymentRequest]
   [/DoDirectPaymentReq]
 [/soap:Body]
[/soap:Envelope]---------------------------------------------------------------------


-------------------------------FINAL_REQ-----------------------------
-------------------This is the response from PayPal------------------
---------------------------------------------------------------------
Array
(
   [security] => 
   [RequesterCredentials] => Array
       (
           [0] => Array
               (
                   [Credentials] => Array
                       (
                           [0] => Array
                               (
                                   [username] => 
                                   [Password] => 
                                   [subject] => 
                               )

                       )

               )

       )

   [DoDirectPaymentResponse] => Array
       (
           [0] => Array
               (
                   [Timestamp] => 2008-02-14T09:37:33Z
                   [Ack] => Failure
                   [CorrelationID] => 6ff1cf7691fb5
                   [Errors] => Array
                       (
                           [0] => Array
                               (
                                   [shortMessage] => Invalid Data
                                   [LongMessage] => This transaction cannot be processed. The amount to be charged is zero.
                                   [ErrorCode] => 10525
                                   [severityCode] => Error
                               )

                       )

                   [Version] => 2.000000
                   [build] => 509326
               )

       )

)


---------------------------------------------------------------------
---------------------------------TS_REQ------------------------------
--------Results of the transaction search if it was executed---------
---------------------------------------------------------------------

 

I would be grateful if someone could help me with this problem

 

Thanks in advance. :blink:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...