close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

eCart6 store PayPal transaction ID

Thread began 12/04/2014 9:55 am by troyd | Last modified 1/12/2015 11:39 am by troyd | 1143 views | 17 replies

TroyD

The $_SESSION didn't show anything for the transaction ID however, when I captured the $_POST I found that it was posted to the success page as $_POST['PPREF'] So that worked to allow me to store it in the orders table. Yay!

BUT...
One other thing that is not adding up in this area is how the email receipt grab the payment method.
The email receipt has this, to show if it was a PayPal account that was used or a CC.

php:
<?php

        
if (!isset($_SESSION["PayPal_ECO_Token"])) {
        
?>
        <p style="padding: 5px 0 5px 10px; margin:0;"> <strong style="color:#222847;  font-weight:bold; margin-right:9px;">Card number:</strong> xxxx xxxx xxxx <?php echo(WA_getSavedFormValue('[FORMREF2]','CardLast4')); ?><br />
                <strong style="color:#222847;  font-weight:bold; margin-right:9px;">Expiration date:</strong><?php echo(WA_getSavedFormValue('[FORMREF2]','Card_Exp_Month')); ?>/<?php echo(WA_getSavedFormValue('[FORMREF2]','Card_Exp_Year')); ?><br />
                <strong style="color:#222847;  font-weight:bold; margin-right:9px;">Security number:</strong> <?php echo(WA_getSavedFormValue('[FORMREF2]','Card_CVV')); ?></p>        
        <?php
        
} else {
        
?>
        <p style="padding: 5px 0 5px 10px; margin:0;"><strong style="color: #003399;  font-weight:bold; margin-right:9px;">PayPal account:</strong> <?php echo(WA_getSavedFormValue('CheckoutWizard_NewFromBlank_Default','Email_Address')); ?></p>
        <?php
        
}
        
?>


The $_SESSION["PayPal_ECO_Token"] is not set.
But the email Receipt shows "PayPal account: email@address.com" even on CC payments.
What I want is the intended "Card Number: xxxx xxxx xxxx (cardlast4) ..." for CC payments.

Which part of the if else statement is not correct? Any idea?

BTW. The $_POST does return the last 4, exp. date and method. $_POST['ACCT'], $_POST['EXPDATE'], $_POST['METHOD'] are all included. I should be able to hand code the statement to create a new session array and then use that, but before I do, I wanted to find out if these details where suppose to be working as designed.

Thanks,
TroyD

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...