X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Paypal DPM Payment Method (https://forum.x-cart.com/showthread.php?t=73404)

BCSE 01-13-2016 07:51 AM

Paypal DPM Payment Method
 
PayPal Direct Post Method for X-cart! This payment module add-on works with your PayPal account to support you to be PCI Compliant including the new PA/DSS standard!

Use this module and your customers will see no difference in checkout! The beauty is, in the background, all Credit Card handling is done directly through PayPal!

Even the option of storing credit cards for the 4.7.x versions of X-cart! (This is done via a token that you get, your store never has the credit card information!)

We have a lot of customers using and loving this option for Payment Methods! Currently we're having a blowout sale of 50% off!

http://www.bcsengineering.com/store/paypal-dpm-for-x-cart.html?utm_source=xcart&utm_medium=forum&utm_ca mpaign=paypal_dpm

Carrie

totaltec 01-13-2016 08:08 PM

Re: Paypal DPM Payment Method
 
Carrie,
Wow! Very cool. I am excited about this development. Will be tucking this into my back pocket for future projects. I have to ask: is it encrypted, or are we free to play and troubleshoot?

BBM_ 01-14-2016 01:41 AM

Re: Paypal DPM Payment Method
 
This looks very interesting, any chance of a demo or example?

cflsystems 01-14-2016 06:56 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by totaltec
Carrie,
I have to ask: is it encrypted, or are we free to play and troubleshoot?


From the module descr

Quote:

Open source! This means if your cart is customized, you can edit this module to work with your customized cart!
All source code is provided though if you need to make any modifications to suit your checkout area if it is customized.


BCSE 01-14-2016 07:23 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by BBM_
This looks very interesting, any chance of a demo or example?


Feel free to email us and we'd be happy to give you a site or two that is using this. I just don't want to have that public out of courtesy of our clients.

Thanks,

Carrie

BCSE 01-14-2016 07:23 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by totaltec
Carrie,
Wow! Very cool. I am excited about this development. Will be tucking this into my back pocket for future projects. I have to ask: is it encrypted, or are we free to play and troubleshoot?


Thanks! We've had it out for a while and realized we hadn't announced it! :D

Thanks,

Carrie

cflsystems 01-19-2016 08:09 AM

Re: Paypal DPM Payment Method
 
I was wrong about the module being open source and unencrypted.
All module's php files are encrypted.

The template files are mixed with "ppf" and "dpm" references and needed modifications to show up properly. The js file refers to "ppf" only while the template files refer mostly to "dpm" so I expect to have some sort of an issue with testing it now.

Carrie you may want to look into this and revise the module as right now it seems to have issues.

And while I don't really care about the encryption if the module's page states it is open source and not encrypted I should have received unencrypted files right. Or the module description is wrong.

BCSE 01-19-2016 10:33 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by cflsystems
I was wrong about the module being open source and unencrypted.
All module's php files are encrypted.

The template files are mixed with "ppf" and "dpm" references and needed modifications to show up properly. The js file refers to "ppf" only while the template files refer mostly to "dpm" so I expect to have some sort of an issue with testing it now.

Carrie you may want to look into this and revise the module as right now it seems to have issues.

And while I don't really care about the encryption if the module's page states it is open source and not encrypted I should have received unencrypted files right. Or the module description is wrong.


That's actually a mistake. It should be open sourced. Likely it's taking on our default encryption settings.

Can you create a ticket with the ppf and dpm questions you have so the staff can field it? And the encryption so we can make sure to get you the correct copy?


Thanks for letting us know! I'm surprised others haven't yet but maybe they never looked at the code.

Carrie

cflsystems 01-19-2016 11:03 AM

Re: Paypal DPM Payment Method
 
I will open a ticket right now and try to be more descriptive. Not tested the module yet so not sure if the mixed up references cause any issues though.

BCSE 01-20-2016 07:28 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by cflsystems
I will open a ticket right now and try to be more descriptive. Not tested the module yet so not sure if the mixed up references cause any issues though.


Thanks so much for taking the time to create a ticket and provide feedback! We have quite a few customers using this and have added several new features in the past few months. It seems some of those new features need back ported and a bit of code clean up too specifically for the version you got. :)

Carrie

cflsystems 01-20-2016 07:58 AM

Re: Paypal DPM Payment Method
 
Thanks Carrie
Waiting for the revised copy

BCSE 01-21-2016 06:49 AM

Re: Paypal DPM Payment Method
 
Also due to popular demand, we have extended the 50% off sale until 1/27 @ 11PM EST!

Get your copy today!
http://www.bcsengineering.com/store/paypal-dpm-for-x-cart.html?utm_source=xcart&utm_medium=forum&utm_ca mpaign=paypal_dpm

Carrie

thebluedoorboutique 01-22-2016 09:00 AM

Re: Paypal DPM Payment Method
 
Does PayPal support any type of saved payment method yet? I know they were working on this to compete with their own product (Braintree) -- they constantly try to get me to switch from Braintree to PayPal.

BCSE 01-22-2016 10:33 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by thebluedoorboutique
Does PayPal support any type of saved payment method yet? I know they were working on this to compete with their own product (Braintree) -- they constantly try to get me to switch from Braintree to PayPal.


Yes actually. We have stored credit cards available in all versions now of this mod!

Let us know if you have any questions.

Thanks,

Carrie

BCSE 01-22-2016 10:38 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by BCSE
Yes actually. We have stored credit cards available in all versions now of this mod!

Let us know if you have any questions.

Thanks,

Carrie


I should be more specific too. X-cart does not have the credit card, only a referenceid to the stored card in Paypal.

Thanks,

Carrie

thebluedoorboutique 01-22-2016 10:46 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by BCSE
I should be more specific too. X-cart does not have the credit card, only a referenceid to the stored card in Paypal.

Thanks,

Carrie


Do you have a demo or screenshots?
Also, any reason you don't support 4.4.X ? We're old school ;)

BCSE 01-22-2016 10:54 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by thebluedoorboutique
Do you have a demo or screenshots?
Also, any reason you don't support 4.4.X ? We're old school ;)


Drop us an email and we can get you an example site. I just don't like to publish them here out of respect for our clients. We can also quote back-porting it if you'd like. There's just not enough demand for that version to do it for the masses.

Thanks,

Carrie

BCSE 03-28-2016 08:40 AM

Re: Paypal DPM Payment Method
 
50% off! Take advantage of this offer while the sale lasts! Good until 4/5 at 11pm EDT!

http://www.bcsengineering.com/store/onsale.php?onsaleid=210

A lot of people take advantage of this module as well as our Authorize.net DPM module!

Carrie

cheap eyeglasses 03-29-2016 05:14 PM

Re: Paypal DPM Payment Method
 
I have upload all files under www.loupesusa.com ,and also have patched the sql file, how to setup PayPal Website Payments Pro pls?

BCSE 04-01-2016 07:02 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by cheap eyeglasses
I have upload all files under www.loupesusa.com ,and also have patched the sql file, how to setup PayPal Website Payments Pro pls?


Did you email us for support yet? It's easiest for us to get you the information that way.

thanks!

Carrie

Eyeglasses Expert 07-09-2016 05:14 PM

Re: Paypal DPM Payment Method
 
http://www.loupesusa.com/cart.php?mode=checkout
blank page, how to set up this plugin, pls?

Eyeglasses Expert 07-09-2016 05:42 PM

Re: Paypal DPM Payment Method
 
does x-cart gold plus need this also?

BCSE 07-14-2016 05:08 PM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by Eyeglasses Expert
http://www.loupesusa.com/cart.php?mode=checkout
blank page, how to set up this plugin, pls?


Make sure you email us for support! We can only limited reply on here as full staff can't get access and I'm on vacation currently!

Thanks,
Carrie

BCSE 07-14-2016 05:09 PM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by Eyeglasses Expert
does x-cart gold plus need this also?


Yes if you want to do CC processing with PayPal I believe you do need this then.

Thanks,

Carrie

cherie 07-15-2016 06:42 PM

Re: Paypal DPM Payment Method
 
Do you mean besides the built-in PayPal Advanced?

BCSE 07-18-2016 09:18 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by cherie
Do you mean besides the built-in PayPal Advanced?


Yes I think some X-cart's have that and some do not and some people don't like the features of it too which is why we have our option. :)

Thanks,

Carrie

BCSE2 03-15-2017 10:49 AM

Re: Paypal DPM Payment Method
 
Paypal DPM & 4 other mods 30% off in our March Madness Sale! http://www.bcsengineering.com/store/onsale.php?display=products&utm_source=bcse&utm_me dium=salebanner&utm_campaign=weeklysale

BCSE 08-01-2017 08:19 AM

Re: Paypal DPM Payment Method
 
Be among the many that use our Paypal DPM module to simplify PCI compliance! Supporting 4 X-cart 4 versions!

http://www.bcsengineering.com/store/paypal-dpm-for-x-cart.html

:)


Carrie

BCSE 10-26-2017 10:37 AM

Re: Paypal DPM Payment Method
 
Revamped Paypal DPM mod for X-Cart on Sale 50% off right now!!

PayPal Direct Post Method for X-cart has been completely rewritten to comply with the new PayPal API! The Paypal DPM for X-Cart Mod add-on works with your PayPal account to support you to be PCI Compliant including the new PA/DSS standard!

Use this module and your customers will see no difference in checkout! The beauty is, in the background, all Credit Card handling is done directly through PayPal! Hurry offer ends November 9, 2017 at 11:00 PM EDT!!

mattstyle2 11-05-2017 12:42 PM

Re: Paypal DPM Payment Method
 
what's the advantage of the new api?

BCSE 11-08-2017 07:12 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by mattstyle2
what's the advantage of the new api?


We've updated it to the latest paypal updates and have change how it posts to paypal. It's a bit more robust now.

Thanks,

Carrie

BCSE 02-27-2018 12:01 PM

Re: Paypal DPM Payment Method
 
We are TLS 1.2 compliant as well if anyone needs a quick solution.

Carrie

BCSE 04-09-2018 07:08 AM

Re: Paypal DPM Payment Method
 
Paypal DPM Blow out sale! $100 off one week only!!

https://www.bcsengineering.com/store/paypal-dpm-for-x-cart.html

Grab this popular module to make your PCI compliance easier! :)

Carrie

mattstyle2 04-20-2018 05:54 AM

Re: Paypal DPM Payment Method
 
Quote:

Originally Posted by BCSE
Paypal DPM Blow out sale! $100 off one week only!!

https://www.bcsengineering.com/store/paypal-dpm-for-x-cart.html

Grab this popular module to make your PCI compliance easier! :)

Carrie


Updated to version 3

did you forget an important element? accounting for coupons, reward points

I had to remove these lines from api.php

'ITEMAMT' => $cart['subtotal'],
'TAXAMT' => $cart['tax_cost'],
'FREIGHTAMT' => $cart['shipping_cost'],


in the post array because kept getting this error:

Field format error: 10413-The totals of the cart item amounts do not match order amounts.

Orders without coupon codes processed fine.. now after removing those three items and telling paypal only the AMT, orders with coupons work.

also got 'not finished' orders again so the new version doesn't seem to fix that either..
--special characters need to be handled when posting to paypal (address, name, city, etc).

-- there was also an ssl issue.. forcing curl to use tls1.2 might fix that one..


--- added a check in finish-order for not-finished orders:
first I had to make it so the module used SECURETOKEN instead of SECURETOKENID in the token.php file
then I added a function to api.php to return the array of secure tokens and orderids
then put a check in finish_order.php in the event the getPaymentRepsonse() returns a blank value.

here's some code..

Code:


require_once $xcart_dir . '/include/payment_wait.php';

$api = bcse_pp_get_api();
 
//bcse_pp_log_error("api get token\n".print_r ($api->getSecureTokenOrders2(),true));
//bcse_pp_log_error("orderid: $orderid token: $token ids $orderids");

//exit;
$response = $api->getPaymentResponse();
//bcse_pp_log_error("RESPONSE:\n".print_r ($api->getPaymentResponse(),true)."setting to blank!\n");  //for testing
//$response=''; //for testing

if (empty($response)) {  //matt add - if response is empty perform an inquiry using the secure token or custref
        bcse_pp_log_error("Empty response found in finish_order.php\n");
        $tokens=$api->getSecureTokenOrders2(); //new function
       
        foreach ($tokens as $k=>$v) {
                $token=$k;
                $orderid=addslashes($v[0]);
                break;
        }
        bcse_pp_log_error("acquired token: $token and orderid: $orderid\n");
        //perform inquiry on token
        if ($token!='' && $orderid!='' && is_numeric($orderid)) {
                $orderids=array();
                $orderids[]=$orderid;
                $response = $api->tokenInquire($token); //new function
                bcse_pp_log_error("Token-Inquire RESPONSE:\n".print_r ($response,true)."\n");
                if ($response['RESULT']==99){
                        $response = $api->custRefInquire($orderid);  //new function requires CUSTREF to be set in the orderdetails POST
                        bcse_pp_log_error("custRef-Inquire RESPONSE:\n".print_r ($response,true)."\n");
                }

.
.
.
comparison code to check silent post .. I use some custom-code and a dbase table to handle silentposts..
.
.
.

if (isset($silent['amount']) && isset($response['AMT']) && $silent['orderid']==$response['CUSTREF'] && $silent['amount']==$response['AMT'] && $silent['transaction']==$response['ORIGPNREF']) {

$response['RESULT']=$response['ORIGRESULT'];
                        $response['PNREF']=$response['ORIGPNREF'];
                        if (!isset($response['AUTHCODE'])) {
                                $response['AUTHCODE']='';
                               
                        }


                } else {
                        $response='';
                        bcse_pp_log_error("ERROR: could not match inquiry with empty response!\n");
                }

                $api->clearSecureTokenOrders($token); //cleanup - new function
} else { //done with an empty result
$orderids = $api->getSecureTokenOrders($response['SECURETOKEN']); //changed to use securetoken - normalshit
}

in this case, the module will now perform an inquiry on the SECURETOKEN and compare results with silent post values..
if it fails to get anything from the securetoken it'll perform an inquiry on CUSTREF



was a bi*tch to setup and took many hours but I feel as this should solve a majority of the "not finished" errors.

hope that helps someone..

please send tips:
BTC: 17jAfPFZ9waexTbGdtCZM4LgAn56qZ7bZh

mattstyle2 04-20-2018 10:37 AM

Re: Paypal DPM Payment Method
 
nice.. breaks amazon payments advanced too..

blah!

people need to test modules..


fix:

in /skin/common_files/modules/BCSE_Paypal_DPM/service_head.tpl

change the first if statement to this:

{if $main eq 'checkout' AND $checkout_module ne 'Amazon_Payments_Advanced'}

please send tips:
BTC: 17jAfPFZ9waexTbGdtCZM4LgAn56qZ7bZh

BCSE 04-23-2018 05:23 AM

Re: Paypal DPM Payment Method
 
Could you please email this in to us so I can have my staff review? I do not believe we are aware of any issues like this and we'd like to review them to make sure they are fixed.

Thank you!

Carrie




Quote:

Originally Posted by mattstyle2
Updated to version 3



All times are GMT -8. The time now is 01:58 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.