Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Question about USING the DPM Method
Hey,
I was wondering If i can use the directPostDemo function to process transaction on a live working website. I would just modify the code a little bit. Thanks
โ05-05-2013 02:30 PM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sort of.
public static function getCreditCardForm($amount, $fp_sequence, $relay_response_url, $api_login_id, $transaction_key, $test_mode = true, $prefill = true)
As you can see, getCreditCardForm has a $test_mode argument.
echo AuthorizeNetDPM::getCreditCardForm($amount, $fp_sequence, $url, $api_login_id, $transaction_key);
You need to add a $test_mode argument to the end of that call.
public static function directPostDemo($url, $api_login_id, $transaction_key, $amount = "0.00", $md5_setting = "")
Then add a $test_mode argument to the end of this function definition. Now you can call directPostDemo in either test mode or live mode by passing true for test mode or false for live mode.

โ05-08-2013 10:35 AM

