Reply
Member
Posts: 6
Registered: ‎01-06-2010

Re: Changing the amount in SIM Integration

sorry for the delay, the one here worked very well, with just some modificactions for customize purpose, if you need any help just post here

Member
Posts: 9
Registered: ‎03-24-2010

Re: Changing the amount in SIM Integration

Could you provide the code for asp users as well?

Posts: 1,476
Topics: 33
Kudos: 37
Solutions: 126
Registered: ‎09-14-2009

Re: Changing the amount in SIM Integration

Authorize.Net has sample code in ASP.


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post
Member
Posts: 9
Registered: ‎03-24-2010

Re: Changing the amount in SIM Integration

I am using the sample code but don't understand how to update the hidden field x_amount after the user clicks on the Submit button.

Member
Posts: 2
Registered: ‎06-29-2011

Re: Changing the amount in SIM Integration

You update this:

    $amount = "19.99";

 

in the parameters area near the top of he sample code.

Member
Posts: 5
Registered: ‎01-04-2012

Re: Changing the amount in SIM Integration

Hi guys,

 

I know this is an ancient topic.. when I run Dave's code I get this error:

 

Parse error: syntax error, unexpected T_VARIABLE in sim.php on line 45

 

Line 45 contains $LiveLoginId = "xxxxxxxxxxx";      where xxxxxxxxxx is my liveloginID
Line 46: $LiveTransactionKey = "xxxxxxxxxx";

 

Any idea of what may be going on?  thanks.

Posts: 1,476
Topics: 33
Kudos: 37
Solutions: 126
Registered: ‎09-14-2009

Re: Changing the amount in SIM Integration

There is a semicolon missing at the end of this line:

 

$ReturnHomePage = "www.someurl.org"

 Just add it there and it should work

 

$ReturnHomePage = "www.someurl.org";

 


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post
Member
Posts: 5
Registered: ‎01-04-2012

Re: Changing the amount in SIM Integration

[ Edited ]

Gotcha, now it's throwing an error for simlib.php.  What does this file do and where may I acquire it?

 

 

Warning: include(simlib.php) [function.include]: failed to open stream: No such file or directory in sim.php on line 81

Warning: include(simlib.php) [function.include]: failed to open stream: No such file or directory in sim.php on line 81

Warning: include() [function.include]: Failed opening 'simlib.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in sim.php on line 81

 

Thank you for your help.

Highlighted
Posts: 1,609
Topics: 15
Kudos: 209
Solutions: 121
Registered: ‎06-23-2011

Re: Changing the amount in SIM Integration

simlib.php probably represents the path to the SIM library file in your Authorize.net PHP SDK (at least, I would hope so...) Try changing to that and see if it works.

Member
Posts: 5
Registered: ‎01-04-2012

Re: Changing the amount in SIM Integration

Thank you for your help TJ, looks like I have it sorted out now. You guys are a lifesaver.