Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal WPP Direct Payments & Express Checkout Support


dynamoeffects

Recommended Posts

I have a customer who is having some difficulty processing an order using a gift voucher and using a credit card to pay for the remaining balance. He has tried several different cards with the same problem. I do not know if the issue is with this PayPal or with CCGV. I am looking for answers in both.

 

The problem is, as far as I can tell so far, as follows:

 

The customer is using a gift voucher balance to pay for an item in his cart. The gift voucher balance covers the entire cost of the item, but not the cost of shipping. When he attempts to pay for the shipping with his credit card, he is getting an error. The error dump I receive from PayPal is as follows:

 

[ShortMessage] => Invalid Data
[LongMessage] => This transaction cannot be processed. Please review the totals of this transaction and resubmit.

 

I presume that there is something wrong with the way the amount is being sent to PayPal, but I do not know for sure. I've asked the customer for a detailed report on what precisely he is doing during the checkout process. Is there anything else in the error dump report that might explain what's going on?

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

Are you using CCGV?

 

Yes, I am. CCGV(trad) to be precise. It appears that the voucher balance is being applied to the customer's order, and the balance is exactly enough to cover the cost of the item being ordered, but not the cost of shipping. Thus the customer is responsible for paying that and that is, from my understanding, what should be being passed to PayPal. However, instead of processing the card properly, he gets the invalid card message, and I get the dump message indicated above.

 

I have tried myself to process an order in a similar fashion. My orders go through without a problem, including an order I tried that covered the cost of the item only, but not shipping. I was charged only for shipping.

 

However, oddly enough, when I did my test order, the PayPal payment notification that I received indicated a Item Name of "Order Total Discrepancy" and was charged exactly 1 penny for this. So my actual charge was 1 penny more than what it should have been.

 

make sense?

 

Again, I do not know if this is an issue with the CCGV(trad) contribution I have or this PayPal contrib.

Edited by Schadeboy

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

Hello,

 

I've downloaded the latest version of Paypal WPP. It works fine on sandbox. However, in live mode the shipping does not get charged. Also, in admin the shipping charges are not reflected on the invoices nor in the order edits area. I also have Google Checkout and Authorize.net AIM installed so I can offer convenient ways to purchase. I've searched this forum, it seems as if I can't find a solution.

 

Has anyone experienced this before. Please help me. Thank you all.

Link to comment
Share on other sites

I've never heard of shipping working in the sandbox and not working at all in live mode. Turn on debug mode and see what that tells you.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

dynamoeffects, thanks for the quick reply.

 

I tested the payment flow in live mode and found...

 

1. A guest adds an item in the shopping cart basket, they are taken to a page where they are asked to log in to Paypal.

 

2. Then the guest is taken to the checkout_confirmation page, not to the shipping page where they select a shipping method.

 

I'm guessing it's a configuration error on my behalf or I screwed up the code somewhere.

 

I hope I gave enough details so someone can help me. Thanks.

Link to comment
Share on other sites

Are you sure you're using my version and not the version that come with RC2? I know Harald's version has a problem adding up totals.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

dynamoeffects,

 

I'm using the version I downloaded from Paypal's developer website. Obviously you've picked up on that. So you know how your module is suppose to function. I will install your version. So I can receive better support.

 

Downloaded your version. It doesn't have any admin files. Does it need any? Thanks.

Edited by discxpress
Link to comment
Share on other sites

If you can wait about a week, the newest version of the module will be ready. It's significantly different than 0.9.2 and much easier to install and I highly suggest waiting for that one. But no, 0.9.2 doesn't come with admin files but the next version will because you'll be able to issue refunds and charge cards from there.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

If you can wait about a week, the newest version of the module will be ready. It's significantly different than 0.9.2 and much easier to install and I highly suggest waiting for that one. But no, 0.9.2 doesn't come with admin files but the next version will because you'll be able to issue refunds and charge cards from there.

 

Hi DynamoEffects (can I call y Brian? That's so much easier to type),

I am wondering if you had any feedback for me on my recent issue I experienced with charging credit cards and the CCGV(trad) contribution? I asked VGER over at her boards (***.com) but she didn't have much to tell me. I don't know if this problem is with the PayPal deal or the CCGV(trad) contribution.

 

Also, I have been receiving some PayPal Error Dumps periodically that contain nothing but the following in the message:

 

In function: ec_step1()

 

There is nothing else in the message at all. I'm wondering if you might have some idea as to what this means?

 

Thanks!

Edited by Schadeboy

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

I'll be testing it with CCGV once I've completed adding the new features.

 

The problem with EC is that PayPal returns nothing sometimes, so that's why the array is empty. I'm increasing the amount of debug information to avoid this problem.

Edited by dynamoeffects

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

I'll be testing it with CCGV once I've completed adding the new features.

 

The problem with EC is that PayPal returns nothing sometimes, so that's why the array is empty. I'm increasing the amount of debug information to avoid this problem.

 

First, I can't tell you how much I'm looking forward to the new version. Some of the features you list are going to be very nice to have.

 

Second, in as far as CCGV(trad) is concerned, the problem I had may be due to the fact that the customer was an international customer and perhaps there was an issue with his address, or something...I don't know. He can pay normally with a credit card and has no problems when that is his sole method of payment. But when he tried to use his voucher balance in combination with his credit card, he had trouble. I tried a couple of test orders with a similar configuration of payment options and had no problems. So I really don't know what might be causing the issue. The only thing that's different between his order and my test orders (that I know of) is the fact that he lives in Spain and I'm in the US. I have no way of verifying this particular problem at the moment.

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

Can you setup an account with his same street address and try purchasing the same products he has with a voucher balance?

 

Also, the request part of the debug would help a bunch. I don't need his personal information, just the part where it shows which products were purchased and the totals.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

Can you setup an account with his same street address and try purchasing the same products he has with a voucher balance?

 

Also, the request part of the debug would help a bunch. I don't need his personal information, just the part where it shows which products were purchased and the totals.

 

I hope I got the right part here:

 

 [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="USD"]11.00[/OrderTotal]
[OrderDescription]Order placed on February 2, 2008, 12:39 am by Emilio Sepulveda (ID: *****)[/OrderDescription]
[ItemTotal currencyID="USD"]0[/ItemTotal]
[ShippingTotal currencyID="USD"]11[/ShippingTotal]
[HandlingTotal currencyID="USD"][/HandlingTotal]
[TaxTotal currencyID="USD"]0[/TaxTotal]
[Custom]Phone: +*********** -- Email: ******************[/Custom]
[InvoiceID][/InvoiceID]
[NotifyURL][/NotifyURL]
[ButtonSource][/ButtonSource]
[ShipToAddress]
[Name]Emilio Sepulveda[/Name]
[Street1]****************[/Street1]
[Street2][/Street2]
[CityName]Barcelona[/CityName]
[StateOrProvince]Barcelona[/StateOrProvince]
[PostalCode]08015[/PostalCode]
[Country]ES[/Country]
[/ShipToAddress]
[PaymentDetailsItem][Name]Bella's Bracelet[/Name][Amount currencyID="USD"]65.00[/Amount][Number]48{2}38 (JBB001)[/Number][Quantity]1[/Quantity][/PaymentDetailsItem][PaymentDetailsItem][Name]Gift Voucher of $65[/Name][Amount currencyID="USD"]-65.00[/Amount][Number]Gift Voucher[/Number][Quantity]1[/Quantity][/PaymentDetailsItem]
[/PaymentDetails]

 

I have commented out his e-mail address, phone number, and his street name and number, but included his country and ZIP in case that can help. I see that it is listing the voucher balance as a Payment item with a negative balance. I don't know if this might be throwing off the system, or not. Again, I have completed transactions similar to his as tests without trouble.

 

I do have several foreign addresses in the address book of my test account with my store. If I have to, I will create a Spanish address as well and I'll let you know the results of my testing.

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

Ah, that's the problem. You can't have a $0 item total while also having shipping charges. I'll look into a workaround.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

Ah, that's the problem. You can't have a $0 item total while also having shipping charges. I'll look into a workaround.

 

One of the tests that I ran, where I used a voucher for the exact amount of the items purchased, created an item of $0.01. The purchase then went through without a hitch. I do not know why that 1 penny item was created when sending the PayPal, and I do not know why this didn't happen with my customer, but this isn't a very good thing no matter what.

 

Thanks for all your help!

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

I need to add to the checkout_payment.php file the word "OR" after the CCV field so that it's much more clearer to visitors that they can choose Paypal to pay (it seems that paypal wants the word "OR" used. Thats what they told me in their phone call with me when they found my site wasn't TOS compliant)

 

I can't for the life of me see where to add this word. Has anyone done this and could direct me?

Link to comment
Share on other sites

I need to add to the checkout_payment.php file the word "OR" after the CCV field so that it's much more clearer to visitors that they can choose Paypal to pay (it seems that paypal wants the word "OR" used. Thats what they told me in their phone call with me when they found my site wasn't TOS compliant)

 

I can't for the life of me see where to add this word. Has anyone done this and could direct me?

 

In an effort to help contribute to this wonderful community, I will take a stab at answering this.

 

Open the paypal_wpp.php file in your catalog>includes>modules>payment folder. Search for the following code:

 

$selection['fields'][] = array('title' => '<b>' . MODULE_PAYMENT_PAYPAL_DP_TEXT_EC_HEADER . '</b>',

 

On my store, I have a line that follows this that begins with:

'field' => '

 

Immediately following the =>' I placed the following little bit of code:

 

<hr><p align="center">or you may use</p><hr>

 

 

So my final piece of code looks like this:

 

$selection['fields'][] = array('title' => '<b>' . MODULE_PAYMENT_PAYPAL_DP_TEXT_EC_HEADER . '</b>',
								   'field' => '<hr><p align="center">or you may use</p><hr><a href="' . tep_href_link('ec_process.php', '', 'SSL') . '"><img src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border=0 style="padding-right:10px;padding-bottom:10px"></a><br><span style="font-size:11px; font-family: Arial, Verdana;">' . MODULE_PAYMENT_PAYPAL_DP_TEXT_BUTTON_TEXT . '</span></td>');

 

This did the trick for me and creates the following results on my site

 

payment.jpg

 

I hope this helps.

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

DynamoEffects - I have added a small bit of code to this contribution that I have found to be very helpful, and was wondering if you'd mind if I added it to your contribution? The functionality of this small bit of code adds a popup window that explains what the Credit Card Checknumber, or CVV2, is and where it is located. The code is as follows:

 

In catalog/checkout_payment.php, look for:

<link rel="stylesheet" type="text/css" href="stylesheet.css">

 

Immediately after this line, add the following javascript code:

<script language="JavaScript" type="text/javascript">
function popup_window()
{
window.open('cvv2.php','jav','width=500,height=450,resizable=no,toolbar=no,menubar=no,status=no,scrollbars
=yes');
}</SCRIPT>

 

In catalog/includes/languages/english/modules/payment/paypal_wpp.php locate:

define('MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION', '(located at the back of the credit card)');

 

change this to:

// Original Line
// define('MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION', '(located at the back of the credit card)');
define('MODULE_PAYMENT_PAYPAL_DP_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION', '<a href="java script:popup_window()"><u>Where do I find this?</u></a>');

 

Using your favorite text or HTML editor, create a file called cvv2.php and use this code:

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Card Verification Value (CVV) Help</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<style type="text/css"><!--
BODY { margin-bottom: 5px; margin-left: 5px; margin-right: 5px; margin-top: 5px; }
table.cvvhelp { border: 1px solid red;}
//--></style>
<body marginwidth="5" marginheight="5" topmargin="5" bottommargin="5" leftmargin="5" rightmargin="5">
<table class="cvvhelp" width="100%" border="0" cellspacing="5" cellpadding="0">
 <tr>
<td colspan="2"><p><strong>What is a Card Verification Value?</strong>

  </p>
  <p>The Card Verification Value (CVV) is a 3- or 4-digit number on your credit card. 
		  It is an additional safeguard that helps us validate your purchase and protect 
			against fraud. This information is not stored in the magnetic strip of your card 
			and is therefore not printed on sales receipts.</p>
  <p><strong>Where is the CVV located?</strong></p>
  </td>
 </tr>
 <tr>
<td><p><strong>VISA, MASTERCARD & DISCOVER</strong><br>

	You can find your card verification code on the reverse side of your credit
	card, printed into the signature field. It is a 3-digit number for Visa, MasterCard,
	and Discover.<br>
  </p></td>
<td><img src="images/cvv2_image_visamc.gif" width="200" height="139"></td>
 </tr>
 <tr>
<td> </td>
<td> </td>
 </tr>

 <tr>
<td><p><strong>AMERICAN EXPRESS</strong><br>
	The American Express Card verification code is a 4-digit number printed
	on the front of your card. It appears after and to the right (above) of
	your card number.<br>
  </p></td>
<td><img src="images/cvv2amex.gif" width="200" height="139"></td>
 </tr>
</table>
<p class="smallText" align="right"><a href="java script:window.close()">Close Window</a></p>

</body>
</html>

 

Upload your newly created cvv2.php to your catalog root directory. You will also need these two image files uploaded into your catalog/images folder.

 

cvv2amex.gif

 

cvv2_image_visamc.gif

 

Once you have all of this in place, you should see a link that appears right behind the field for the credit card checknumber that says "What is this?". Clicking the link should popup a window that displays the cvv2.php file you created, along with the two credit card images.

 

This works for me extremely well, even with your accordion contribution. If you like, I can put all of this together into a ZIP file and upload it to the contribution section for your contribution. I wanted to get your permission before I did that, though.

 

Thanks!

Edited by Schadeboy

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

Upload your newly created cvv2.php to your catalog root directory. You will also need these two image files.

 

Not sure if the AMEX image came through or not, so I'm posting it again. Sorry about that.

 

Modifications to the cvv2.php code or the images may need to be made to accommodate for your particular needs (ie, I don't know if the UK version of PayPal accepts American Express).

 

cvv2amex.gif

Edited by Schadeboy

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

very nice, Brian. just one thing...in the cvv2.php and the paypal_wpp.php file, javascript is one word.

 

That is so weird. I copied and pasted directly from my code, yet somehow when it pasted here it put a space between "java" and "script". Well, just keep that in mind if you decide to implement it. You'll have to make javascript one word. If Dynamoeffects says it's okay, I'll put this in as an additional file to his contribution and make sure that correction is made.

 

Thanks for pointing that out.

Brian (Schadeboy) Schade

CIO and Webmaster

Twilight Teez, LLC

 

"Camping is nature's way of promoting the hotel industry."

-Dave Barry

Link to comment
Share on other sites

Yeah, sorry you went through the trouble in doing that, the new version has a CVV2 popup information window that shows that. That was something that SteveDallas sent me months ago to add to the new version along with little credit card icons that go to the right.

 

The new version is ready, so I'll try to release it today to get some feedback about the new features. I need to fix one or two more items on the todo list and test out IPN some more, but looks like it's good to go.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...