Author Topic: How to integrate DPS pxpay?  (Read 12677 times)

robertcorsescott

  • Jr. Member
  • **
  • Posts: 102
Re: How to integrate DPS pxpay?
« Reply #15 on: December 17, 2009, 08:28:09 am »
thanks thomas

robertcorsescott

  • Jr. Member
  • **
  • Posts: 102
Re: How to integrate DPS pxpay?
« Reply #16 on: January 14, 2010, 01:11:28 am »
Hi Thomas are you still around?

I got up to step 5 on the DPS read me file. Couple of questions -
1. Step 6 - Complete the configuration values in the config Tab? - what are these requirements or what goes in here?
2. step 7.2 I dont have a file checkoutpaymentradio.php, would I just upload your entire file here or could this stuff up other things with VM.

Any help apppreciated, I'm a bit stuck as to what I am to do

Hope that is not to silly or confusing

Cheers

robertcorsescott

  • Jr. Member
  • **
  • Posts: 102
Re: How to integrate DPS pxpay?
« Reply #17 on: January 29, 2010, 04:31:12 am »
Hi i am having some issues with the dps payments. I am in support of dps as well.

Confirmation page once order is completed has no style it is just a text document. In the configuration code there is a path to this I think. I'm not a programmer so just guessing. I just need confirmtion redirecting back into website template.

Could it be the script url using code for joomla 1.4? prob not but i thought worth asking. I changed it to the actual domain address leaving out $mosConfig_live_site and replacing with the www.address.com/admin...

 $script_url = $mosConfig_live_site.'/administrator/components/com_virtuemart/classes/payment/ps_dpsax_notify.php';

If you could help that would be great.
The configuration code for the module is below.

<?
// code for module
include( CLASSPATH."payment/pxaccess.inc" );

$pxaccess = new PxAccess( DPSAX_PXACCESS_URL, DPSAX_USERID, DPSAX_KEY, DPSAX_MAC_KEY );
$request = new PxPayRequest();

$shop_name = 'AromaSense';
$address1 = '80 Hine Road, Wainuiomata, Lower Hutt, 5014 ';
$address2 = 'New Zealand';
$script_url = $mosConfig_live_site.'/administrator/components/com_virtuemart/classes/payment/ps_dpsax_notify.php';


#Set up PxPayRequest Object
$request->setAmountInput( $db->f("order_total") );
$request->setTxnData1( $shop_name );
$request->setTxnData2( $Address1 );
$request->setTxnData3( $Address2 );
$request->setTxnType( "Purchase" );
$request->setInputCurrency( "NZD" );
$request->setMerchantReference( $db->f("order_id") );
$request->setEmailAddress("sam.pipe@gmail.com");
$request->setUrlFail( $script_url );
$request->setUrlSuccess( $script_url );


#Call makeResponse of PxAccess object to obtain the 3-DES encrypted payment request
$request_string = $pxaccess->makeRequest( $request );

header( "Location: $request_string" );
?>

tree

  • Beginner
  • *
  • Posts: 1
Re: How to integrate DPS pxpay?
« Reply #18 on: February 05, 2010, 08:36:34 am »
Hi Robert,

It looks like you are using an older version of the DPS module. There was a newer one(pxaccess.zip) that was posted by dl_mj12 on page 4 of the forum post http://forum.virtuemart.net/index.php?topic=15269.45

I have attached it for your convenience.

I have been able to get this to work with Joomla 1.5.14 and Virtuemart 1.14. There is still an issue with $mosConfig_live_site as this is an out dated Joomla extension. for the time being I have changed this to a hard coded string for my site.

I am planning to try rework the code a little to bring in line with Joomla 1.5 standards and maybe make some improvements. I'm not sure how much time I will have available to do this, so It may take quite some time. If I can improve the code I will post it here.

****************************************************************
I have just updated the attachment with an edit that addresses the issue of $mosConfig_live_site this is now set dynamically and does not need to be hard coded.
I still plan to add additional DPS functionality to the module but am struggling to find time.


[attachment cleanup by admin]

krazeguy

  • Beginner
  • *
  • Posts: 10
Re: How to integrate DPS pxpay?
« Reply #19 on: February 09, 2010, 06:26:19 am »
Hey Tree,

I would be happy to pay cash for a reworked version! If you can improve!

bobby_38

  • Beginner
  • *
  • Posts: 19
    • Best IT store
Re: How to integrate DPS pxpay?
« Reply #20 on: April 27, 2011, 06:34:27 am »
work ok but in my test visa, and mastercard are decline and amex processed ok...qeird our system not supposed to support amex...how can we process the same way in a iframe because the page is just the form...
Try harder, one error today is the success of tomorrow

http://www.tech2cool.com

jp-30

  • Beginner
  • *
  • Posts: 19
Re: How to integrate DPS pxpay?
« Reply #21 on: October 03, 2011, 01:38:39 am »
Hi,

I changed the URL in the Config tab to

https://sec.paymentexpress.com/pxpay/pxaccess.aspx

But putting a transaction through yields;

(https://sec.paymentexpress.com/pxpay/pxaccess.aspx?userid= etc...)

pxaccess.aspx: Error. This page accepts only HTTP POST's.

Help!

______________________________

Resolved!

Never mind, my error, it should have been

https://sec.paymentexpress.com/pxpay/pxpay.aspx

in the psaccess field.