× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That code is actually running on my IBM i Jack - just so there’s no doubt about the PHP implementation having an impact.



On Dec 30, 2015, at 1:06 PM, Jack Tucky <jacktucky@xxxxxxxxx> wrote:

Yes the sample code works for me locally on my PC with the WAMP setup.

So for now the new API isn't returning the same yet, I should be able to
figure it out.

Thanks again

On Wed, Dec 30, 2015 at 11:30 AM, Jon Paris <jon.paris@xxxxxxxxxxxxxx>
wrote:

We have just started using the Payeezy system Jack and found that the PHP
sample code they supplied works perfectly to create the hash.

This is our modified version of that code:

// String together the values that contribute to x_fp_hash
$hmac_data = $x_login . "^" . $x_fp_sequence . "^" . $x_fp_timestamp
. "^" . $x_amount . "^" . $x_currency_code;

// Form the MD5 hash using the transaction key
$x_fp_hash = hash_hmac('MD5', $hmac_data, $transaction_key);


Since that part of our system is PHP based I have not had a need to
perform the same task from RPG so I can’t help you there.



On Dec 30, 2015, at 10:09 AM, Jack Tucky <jacktucky@xxxxxxxxx> wrote:

I knew my post was long but I thought I put it together properly. The
website name is payeezy.com. Not sure if it's worth posting since you
need
a user id/password to use their testing tools.

In my first post i stated that I was using the Qc3CalculateHash and the
the
sample code was using the PHP HMAC-MD5, I didn't know that Hmac and MD5
were different.

Thanks for clearing that up. I'll look at the other API


On Tue, Dec 29, 2015 at 4:47 PM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

On Tue, Dec 29, 2015 at 4:36 PM, Kevin Bucknum
<Kevin@xxxxxxxxxxxxxxxxxxx> wrote:
HMAC is not just an MD5 hash. Go to
http://www.freeformatter.com/hmac-generator.html to see a web site
that
will match up with the example you are given.

Yes, finally. If he'd just come out and said HMAC from the beginning,
it would have saved a lot of trouble.

And yes, I've confirmed with Python also that the example he's looking
for is an HMAC using the MD5 algorithm, with the "salt" as the key.

John Y.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.