Hallo allemaal,
Ik zag dat hier al een aantal mensen mee bezig waren en het blijkt dat het hun wel gelukt is om Ideal light te integreren. Het lukt mij echter absoluut niet. Ik probeer nu al een maand om het te implementeren en ik weet niet wat ik fout doe en krijg steeds de foutmelding "Validation of hashkey failed"
Daarnaast heeft de Rabobank mij verteld dat ik maar iemand moest vinden die het wel kan aangezien er al 'tientallen' mensen zijn geweest waar het wel mee lukt. enfin...
Hieronder mijn code:
<cfset hashcodestring = "xxxxxx"> (merchant key)
<!--- merchant_id --->
<cfset hashcodestring = "#hashcodestring#xxxxxx">
<!--- subid --->
<cfset hashcodestring = "#hashcodestring#0">
<!--- amount --->
<cfset hashcodestring = "#hashcodestring#100">
<!--- uniqueid --->
<cfset hashcodestring = "#hashcodestring##GetOrderNumber.basket_id#">
<!--- paymentType --->
<cfset hashcodestring = "#hashcodestring#iDEAL">
<!--- validUntil --->
<cfset hashcodestring = "#hashcodestring##Dateformat(dateAdd('n',30,now()),"ddmmyy")#">
<!--- basket items --->
<cfset hashcounter = 1>
<cfloop query="getbasketItems">
<cfset hashcodestring = "#hashcodestring##getbasketItems.basketitem_id##hashcounter#">
<cfset hashcodestring = "#hashcodestring##getbasketItems.itemid##hashcounter#">
<cfset hashcodestring = "#hashcodestring##getbasketItems.quantity##hashcounter#">
<cfset hashcodestring = "#hashcodestring#100#hashcounter#">
<cfset hashcounter = #hashcounter# + 1>
</cfloop>
<cfoutput><cfset hashcodestring = #Replace(hashcodestring,"-","","ALL")#></cfoutput><br />
<cfset hashed = Hash(#hashcodestring#,"SHA")>
<cfoutput><FORM METHOD="post" ACTION="https://idealtest.rabobank.nl/ideal/mpiPayInitRabo.do" id="form1" name="form1">
<INPUT type="hidden" NAME="merchantID" value="xxxxxx">
<INPUT type="hidden" NAME="subID" value="0">
<INPUT type="hidden" NAME="amount" VALUE="100" >
<INPUT type="hidden" NAME="purchaseID" VALUE="#GetOrderNumber.basket_id#">
<INPUT type="hidden" NAME="language" VALUE="nl">
<INPUT type="hidden" NAME="currency" VALUE="EUR">
<INPUT type="hidden" NAME="description" VALUE="Bestelling: #session.basketsession_id#">
<INPUT type="hidden" NAME="hash" VALUE="#HASHED#">
<INPUT type="hidden" NAME="paymentType" VALUE="ideal">
<INPUT type="hidden" NAME="validUntil" VALUE="#Dateformat(dateAdd('n',30,now()),"ddmmyy")#">
<cfset basketCounter = 1>
<cfloop query="getbasketItems">
<INPUT type="hidden" NAME="itemNumber#basketcounter#" VALUE="#getbasketItems.basketitem_id#">
<INPUT type="hidden" NAME="itemDescription#basketcounter#" VALUE="#getbasketItems.itemid#">
<INPUT type="hidden" NAME="itemQuantity#basketcounter#" VALUE="#getbasketItems.quantity#">
<INPUT type="hidden" NAME="itemPrice#basketcounter#" VALUE="100">
<cfset basketcounter = #basketcounter# + 1>
</cfloop>
<INPUT name="Submit" type="submit" value="Betaal met iDEAL">
</form>
</cfoutput>
Ik hoop dat iemand mij kan helpen.
Groet
Nonny
Ik zag dat hier al een aantal mensen mee bezig waren en het blijkt dat het hun wel gelukt is om Ideal light te integreren. Het lukt mij echter absoluut niet. Ik probeer nu al een maand om het te implementeren en ik weet niet wat ik fout doe en krijg steeds de foutmelding "Validation of hashkey failed"
Daarnaast heeft de Rabobank mij verteld dat ik maar iemand moest vinden die het wel kan aangezien er al 'tientallen' mensen zijn geweest waar het wel mee lukt. enfin...
Hieronder mijn code:
<cfset hashcodestring = "xxxxxx"> (merchant key)
<!--- merchant_id --->
<cfset hashcodestring = "#hashcodestring#xxxxxx">
<!--- subid --->
<cfset hashcodestring = "#hashcodestring#0">
<!--- amount --->
<cfset hashcodestring = "#hashcodestring#100">
<!--- uniqueid --->
<cfset hashcodestring = "#hashcodestring##GetOrderNumber.basket_id#">
<!--- paymentType --->
<cfset hashcodestring = "#hashcodestring#iDEAL">
<!--- validUntil --->
<cfset hashcodestring = "#hashcodestring##Dateformat(dateAdd('n',30,now()),"ddmmyy")#">
<!--- basket items --->
<cfset hashcounter = 1>
<cfloop query="getbasketItems">
<cfset hashcodestring = "#hashcodestring##getbasketItems.basketitem_id##hashcounter#">
<cfset hashcodestring = "#hashcodestring##getbasketItems.itemid##hashcounter#">
<cfset hashcodestring = "#hashcodestring##getbasketItems.quantity##hashcounter#">
<cfset hashcodestring = "#hashcodestring#100#hashcounter#">
<cfset hashcounter = #hashcounter# + 1>
</cfloop>
<cfoutput><cfset hashcodestring = #Replace(hashcodestring,"-","","ALL")#></cfoutput><br />
<cfset hashed = Hash(#hashcodestring#,"SHA")>
<cfoutput><FORM METHOD="post" ACTION="https://idealtest.rabobank.nl/ideal/mpiPayInitRabo.do" id="form1" name="form1">
<INPUT type="hidden" NAME="merchantID" value="xxxxxx">
<INPUT type="hidden" NAME="subID" value="0">
<INPUT type="hidden" NAME="amount" VALUE="100" >
<INPUT type="hidden" NAME="purchaseID" VALUE="#GetOrderNumber.basket_id#">
<INPUT type="hidden" NAME="language" VALUE="nl">
<INPUT type="hidden" NAME="currency" VALUE="EUR">
<INPUT type="hidden" NAME="description" VALUE="Bestelling: #session.basketsession_id#">
<INPUT type="hidden" NAME="hash" VALUE="#HASHED#">
<INPUT type="hidden" NAME="paymentType" VALUE="ideal">
<INPUT type="hidden" NAME="validUntil" VALUE="#Dateformat(dateAdd('n',30,now()),"ddmmyy")#">
<cfset basketCounter = 1>
<cfloop query="getbasketItems">
<INPUT type="hidden" NAME="itemNumber#basketcounter#" VALUE="#getbasketItems.basketitem_id#">
<INPUT type="hidden" NAME="itemDescription#basketcounter#" VALUE="#getbasketItems.itemid#">
<INPUT type="hidden" NAME="itemQuantity#basketcounter#" VALUE="#getbasketItems.quantity#">
<INPUT type="hidden" NAME="itemPrice#basketcounter#" VALUE="100">
<cfset basketcounter = #basketcounter# + 1>
</cfloop>
<INPUT name="Submit" type="submit" value="Betaal met iDEAL">
</form>
</cfoutput>
Ik hoop dat iemand mij kan helpen.
Groet
Nonny