Jump to content

Payment Gateway Module Development


Dids

Recommended Posts

So, working on the callback module now, but not sure what I'm doing wrong.

 

Here's a screenshot of what the gateway log says: http://kimag.es/share/4529331.png

 

And current source for the callback script: http://slexy.org/view/s21KCsioCi

 

Though, I have a feeling I'm already doing something wrong. The $reference field is the "invoice id" (it even matches, just can't seem to find it?).

 

This is what the API says (rough translation):

 

Required fields

1. Description: Payment version (always 0001), Name: VERSION

2. Description: Payment ID, Name: STAMP

3. Description: Payment reference, Name: REFERENCE (this is the invoiceid)

4. Description: Payment "stamp defined by the API, Name: PAYMENT

5. Description: Payment status, Name: STATUS, if the Value = 2, the payment was succesful

6. Description: Algorithm, Name: ALGORITHM, Default Value: 1

7. Description: Passcode, Name: MAC

 

MD5(VERSION+STAMP+REFERENCE+PAYMENT+STATUS+ALGORITHM+passcode)

Field 1) Default, always ”0001”

Field 2) Merchants defined unique id for the payment

Field 3) Merchants defined reference for the payment

Field 4) APIs defined unique ID

Field 5) Payment status info, 2 = paid, 5 = delayed

Field 6) Hash algorithm, default = 1 (MD5)

Field 7) The md5 hash

 

I'm guessing I have to generate the hash locally now and compare it to the hash they're sending, and if it matches, then complete the payment? If I could only get $reference to match the invoiceid. Also, I noticed that it's querying the database for "transid" and "amount", though transid should be $stamp in my case, the API doesn't post the amount back to me.

Link to comment
Share on other sites

  • 8 years later...

That technetwebhost put the modules on sale even though he only had access to use not for resell.... He "buy" those modules and wont even pay, because there was one bug on code (whole software works fine and u can pay tru both payment getaways) 

This dude has no experience on software development he collect free and paid code and sell them as his own :D

U can buy here Checkout Finland and paytrail modules (where money goes do developer): https://laskutussofta.fi

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated