Hello everybody,
I try to integrate paypal to my site with the following code:
Code:
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Pay.aspx.cs" Inherits="Pay" %>
<%@ mastertype virtualpath="~/MasterPage.master" %>
<asp:Content ID="Pay" ContentPlaceHolderID="phContent" runat="server">
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick"/>
<input type="hidden" name="business" value="seller_1263806162_biz@offis.de"/>
<input type="hidden" name="lc" value="US"/>
<input type="hidden" name="item_name" value="report_name"/>
<input type="hidden" name="item_number" value="report_id"/>
<input type="hidden" name="amount" value="10.00"/>
<input type="hidden" name="currency_code" value="USD"/>
<input type="hidden" name="button_subtype" value="products"/>
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/>
</form>
</asp:Content>
When I now click on the button, nothing happens.
When I set up my test accounts at sandbox, I got the message "Account Created Successfully but failed to add Bank and Credit Card " and there is no entry at the API Credentials. Perhaps that is the error? I would at least have expected that I get an exception, if there is a problem.
Can someone help me?
hn