Thursday 15 March 2012

asp.net mvc - Integrate paypal 'Buy now' button programaticaly -


In my site I am now integrating button programming using PayPal.

I have it:

  & lt; Form action = "https://www.sandbox.paypal.com/cgi-bin/webscr" method = "post" style = "margin-top: 30px;" & Gt; & Lt ;! - Specify a Buy Now button. - & gt; & Lt; Input type = "hidden" name = "CMD" value = "_x click" /> & Lt ;! - Identify your business so that you can collect payments. - & gt; & Lt; Input type = "hidden" name = "business" value = "me@email.com" /> & Lt ;! - Specify the details of the items that the buyer will buy. - & gt; & Lt; Input type = "hidden" name = "item_name" value = "your items." / & Gt; & Lt; Input type = "hidden" name = "item_nimer" value ='@Model.OrderId '/ & gt; & Lt; Input type = "hidden" name = "zodiac" value = '@model total' / & gt; & Lt; Input type = "hidden" name = "currency_code" value = "dkk" /> & Lt ;! - No shipping address - & gt; & Lt; Input type = "hidden" name = "no_shipping" value = "1" /> & Lt ;! - Specify a URL for the payment confirmation page and a page that is displayed if the user can cancel the transaction. Specify a URL that can post PayPal IPN message (see details below) - & gt; & Lt; Input type = "hidden" name = "return" value = "http://mysite.com/Order/Complete/" /> & Lt; Input type = "hidden" name = "cancel" "value =" http://mysite.com/Order/Cancel/ "/> & lt; input type =" hidden "name =" notify_url "value => "> /> 
Do not prompt customers to include a note with their payment - & gt; & lt; input type =" hidden "name =" no_not "value =" 1 "/> & Lt ;! - Display payment button -> gt; & lt; input type =" image "name =" submit "src =" https://www.sandbox.paypal.com/en_US/ I / btn / btn_buynowCC_LG.gif "alt =" PayPal "safe" an easy way to pay online"/>; & Lt; img src =" https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif "width =" 1 "height =" 1 "alt =" "/ & Gt; & lt; / form & gt;

Now I have some questions that I have not yet received any answer and I saw the Paypal document but nothing really got it: (

  1. When I go to the PayPal site, it does not show the option of paying by credit card. It only shows the payment option, which has a paypal account and a new paypal Create account How can I show the option to pay by credit card ??

  2. At the time of payment, in the PayPal site it shows my email address. But I do not want to show my business to my client how can I do this?

  3. After making a payment with my PayPal account, it does not automatically redirect to my page Even though I have no one in the 'Return' field It is very good if someone can help me ..

    The option to allow the buyer to pay by credit card is only available for confirmation and verified PayPal accounts. Ess "The value you provided above is not linked to any PayPal account - it can not be the one you use, but this time only this information is available.

    The buyer and There are also some country restrictions for both the seller

    To show the business name you will need the value of "business" which will be the e-mail address of a confirmation linked to a business paypal account.

    Just "Back "Defining variables buyers are not returned automatically on your site you should be able to auto-return receivers account.

No comments:

Post a Comment