Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Cannot find paypal integration documentation #5447


User avatar
0
kumaran created

Hi We are building a site to buy tickets for events. I need to accept payment through paypal gateway. We do have business account. I cannot find any documentation on how to implement paypal in a new page to complete an order. Please point me to the right direction.
Thanks


6 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    Hi,

    Just set the configuration for PayPal to be able to get payment. Fill out the configuration in AppSettings.Json

    "PayPal": {
          "Environment": "sandbox",
          "BaseUrl": "https://api.sandbox.paypal.com/v1",
          "ClientId": "",
          "ClientSecret": "",
          "DemoUsername": "",
          "DemoPassword": ""
    }
    

    For Angular <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/a956c12252738dc54b3725825e4a316f64497de7/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/appsettings.json#L92">https://github.com/aspnetzero/aspnet-ze ... s.json#L92</a>

    For MVC <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/710b7cc0fe62ccd12a2ef35be3dbc723a78cbb74/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/appsettings.json#L109">https://github.com/aspnetzero/aspnet-ze ... .json#L109</a>

  • User Avatar
    0
    kumaran created

    Thanks for the reply. I can find the settings for paypal.

    How to integration the payment solution in the application. Any example would be great.

    Thanks Kumaran

  • User Avatar
    0
    alirizaadiyahsi created

    Just fill configurations that @alper mentioned with your own paypal app info.

  • User Avatar
    0
    kumaran created

    I am not using paypal for tenant subscription. I am using paypal to place order in a new page. It is hard to understand the current tenant subscription related screen to understand the server side communication with paypal and convert that to my new screen paypal integration. Hope you understand what i am asking.

  • User Avatar
    0
    kumaran created

    Also if there is a detail documentation on how paypal integration works other than the settings, it would be great.

  • User Avatar
    0
    mumfie created

    <cite>kumaran: </cite> Also if there is a detail documentation on how paypal integration works other than the settings, it would be great.

    You can look at the class PayPalGatewayManagaer.cs in conjunction with the paypal api docs <a class="postlink" href="https://developer.paypal.com/docs/api/overview/#make-your-first-call">https://developer.paypal.com/docs/api/o ... first-call</a> <a class="postlink" href="http://paypal.github.io/PayPal-NET-SDK/Samples/PaymentWithPayPal.aspx.html">http://paypal.github.io/PayPal-NET-SDK/ ... .aspx.html</a> <a class="postlink" href="https://developer.paypal.com/docs/api/overview/#authentication-and-authorization">https://developer.paypal.com/docs/api/o ... horization</a> <a class="postlink" href="https://github.com/paypal/PayPal-NET-SDK">https://github.com/paypal/PayPal-NET-SDK</a>