English 中文(简体)
PayPal ExpressCheckout 失踪案
原标题:PayPal ExpressCheckout Missing Total column

我为什么没有在检查页上填写总数?

“Missing

Apologies.

As my code is working, because it actually got to PayPal and does have all the field correct. I didn t think it was necessary to post the code. I thought it could be answered simply, "you re missing the XXXX variable in your post to PayPal."

但是,考虑到这一点,需要制定法典。

This is COLDFUSION (yes caps because people think this is a dead/dying language).

<cffunction name="expressCheckout" access="remote" returnformat="JSON" output="false" description="Processes PayPal Subscription">
    <cfargument name="L_BILLINGAGREEMENTDESCRIPTION0" type="string" required="yes" />
    <cfargument name="L_BILLINGTYPE0" type="string" required="yes" />
    <cfargument name="AMT" type="numeric" required="yes" />

    <cfset var username = "wpp_1306278086_biz_api1.blahblah.com">
    <cfset var password = "1306278555">
    <cfset var signature = "someSig">
    <cfset var serverURL = "https://api-3t.sandbox.paypal.com/nvp">
    <cfset var version = "65.1">

    <cfset requestData = StructNew()>
    <cfset requestData.USER = "#USERNAME#">
    <cfset requestData.PWD = "#PASSWORD#">
    <cfset requestData.SIGNATURE = "#SIGNATURE#">
    <cfset requestData.SUBJECT = "">
    <cfset requestData.VERSION = "#version#">
    <cfset requestData.METHOD = "SetExpressCheckout">
    <cfset requestData.AMT = "#arguments.AMT#">
    <cfset requestData.DESC = "#arguments.L_BILLINGAGREEMENTDESCRIPTION0#">
    <cfset requestData.CUSTOM = "#session.rfcid#">

    <cfset requestData.returnURL = "http://localhost:8500/rfc2-1/membership/payPalConfirm.cfm">
    <cfset requestData.cancelURL = "http://localhost:8500/rfc2-1/membership/creditcardform.cfm">

    <cfset payPalReturn = doHttppost(requestData, serverURL, "no")>
    <cfset payPalReturn = getNVPResponse(#URLDecode(payPalReturn)#)>

    <cfif payPalReturn.ACK EQ "Failure">
        <!--- return the error message --->
        <cfset payPalReturn.ERRORMESSAGE = #payPalReturn.L_LONGMESSAGE0#>
    </cfif>

    <cfreturn payPalReturn>

</cffunction>

This retuns a json object to the browser. The browser then sends me to: https://sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=SomeToken

All fine when I get to PayPal. Just missing the total in the left hand box (as diagrammed)

问题回答

Try appending &useraction=commit to the PayPal redirection URL (https://www.sand Box. Paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-xxxx&useraction=commit)。

这部书签协议并不确定,但值得一枪。 它为定期付款工作。

edit:
Actually, on second thought; since it s a billing agreement, which is not for a fixed price (otherwise you wouldn t need a billing agreement in the first place); this would be intended. Since there is no specific price to display.





相关问题
2. 提交多件物品,一劳永逸地与营地一起支付

我有一些销售物品,有2和3级的定制。 一旦安装了用户,就会增加我的现场车。 问题在于,如何把每一件物品送到检查时支付费用? 唯一发现的法典......

PHP - Paypal product timeout

I have finally got my paypal system working using IPN and a reservation system to ensure that two people do not buy the same product. The problem is, the reservations last for 10 mins on my ...

Paypal not picking up shipping?

this is strange, for some reason this paypal isn t picking up my shipping_1 value, yet I have done another form similar, and it goes through ok? I have no idea what s wrong with it.. <form target=&...

PayPal Website Payment Pro / Payflow Pro Difficulties

Okey, I m using PHP/SQL for my built web-cart. I also have the required paypal account (business) so I have an API authentication. I also made a sandbox account and got an API authentication there too....

How to link username in site to PayPal information email?

It s not a problem but i don t know how to do this; let s say that I have a sign up form with some fields: username, password, email, as you know the user clicks on the BUY BUTTON and pay s up. Well, ...

About paypal express checkout api

In this picture,there are 3 main steps:SetExpressCheckout,GetExpressCheckoutDetails and DoExpressCheckoutDetails,I m now sure SetExpressCheckout is to be called by myself,what about ...

Does HttpWebRequest send 200 OK automatically?

Background: I am implementing Paypal IPN handler. This great article on Paypal states that I am required to send a 200 OK back to Paypal after I read the response. The processing of IPN request is ...

热门标签