Je souhaite réaliser: PayPal check-out express sur le panier
donc dans mon panier page I mis session("Payment_Amount") = total
et téléchargé les deux fichiers asp l'assistant m'a dit. expresschecout.asp et paypalfunctions.asp. et ajouté les informations d'identification de l'API à l'endroit du corect. et j'ajoute la forme de leur assistant:
<form action='expresscheckout.asp' METHOD='POST'>
<input type='image' name='submit' src='https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif' border='0' align='top' alt='Check out with PayPal'/>
</form>
Mais quand je vais à mon panier et appuyez sur le bouton paypal soumettre je suis pris à expressheckout.asp mais la page séjours Whit, en disant Fait en l'état bar. comment puis-je déboguer ça? :/
EDIT AJOUTÉE mon code, ASP:
<!-- #include file ="paypalfunctions.asp" -->
<%
' ==================================
' PayPal Express Checkout Module
' ==================================
On Error Resume Next
'------------------------------------
' The paymentAmount is the total value of
' the shopping cart, that was set
' earlier in a session variable
' by the shopping cart page
'------------------------------------
paymentAmount = Session("Payment_Amount")
'------------------------------------
' The currencyCodeType and paymentType
' are set to the selections made on the Integration Assistant
'------------------------------------
currencyCodeType = "USD"
paymentType = "Sale"
'------------------------------------
' The returnURL is the location where buyers return to when a
' payment has been succesfully authorized.
'
' This is set to the value entered on the Integration Assistant
'------------------------------------
returnURL = "http://www.noamsm.co.il/index.asp"
'------------------------------------
' The cancelURL is the location buyers are sent to when they click the
' return to XXXX site where XXX is the merhcant store name
' during payment review on PayPal
'
' This is set to the value entered on the Integration Assistant
'------------------------------------
cancelURL = "http://www.noamsm.co.il/index.asp"
'------------------------------------
' Calls the SetExpressCheckout API call
'
' The CallShortcutExpressCheckout function is defined in the file PayPalFunctions.asp,
' it is included at the top of this file.
'-------------------------------------------------
Set resArray = CallShortcutExpressCheckout (paymentAmount, currencyCodeType, paymentType, returnURL, cancelURL)
ack = UCase(resArray("ACK"))
If ack="SUCCESS" Then
' Redirect to paypal.com
ReDirectURL(resArray("TOKEN"))
Else
'Display a user friendly Error on the page using any of the following error information returned by PayPal
ErrorCode = URLDecode(resArray("L_ERRORCODE0"))
ErrorShortMsg = URLDecode(resArray("L_SHORTMESSAGE0"))
ErrorLongMsg = URLDecode(resArray("L_LONGMESSAGE0"))
ErrorSeverityCode = URLDecode(resArray("L_SEVERITYCODE0"))
End If
%>
Je devine que je reçois une des erreurs du fond, mais ne peux pas trouver où voir thm ..
je mets le code :) pourriez-vous s'il vous plaît m'aider .. (je échoue avec cela pendant 2.5 semaines :( –