💰 Payments - Our-Company-Ltd/our.orders GitHub Wiki

Dashboard Screen

Add more payment services:

💳 Stripe

  1. Install Package
    Use the Our.Orders.stripe NuGet package manager inside Visual Studio, Xamarin Studio, or run the following command: Package Console:
PM> Install-Package Our.Orders.stripe

.Net CLI:

dotnet add package Our.Orders.stripe
  1. Add to startup
public void ConfigureServices(IServiceCollection services, ...)
{
  var stripeSecretKey = "your stripe secret key";
  var stripePublishableKey = "your stripe publishable production";

  ...
  services
    .AddOurOrders()
    ...
    .UseStripe(stripeSecretKey, stripePublishableKey);
  ...
}
  1. Launch the app & test You should now have the possibility to pay by Stripe in the checkout view.

Paypal

  1. Install Package
    Use the Our.Orders.paypal NuGet package manager inside Visual Studio, Xamarin Studio, or run the following command: Package Manager Console:
PM> Install-Package Our.Orders.paypal

.Net CLI:

dotnet add package Our.Orders.paypal
  1. Add to startup
public void ConfigureServices(IServiceCollection services, ...)
{
  var clientIdSandbox = "your client id sandbox";
  var clientIdProduction = "your client id production";
  var secretSandbox = "your secret sandbox";
  var secretProduction = "your secret production";

  ...
  services
    .AddOurOrders()
    ...
    .UsePayPal(clientIdSandbox, clientIdProduction, secretSandbox, secretProduction, "sandbox");
  ...
}
  1. Launch the app, test & move to production You should now have the possibility to pay by Paypal in the checkout view. As soon as you are ready for production, switch the environment from sandbox to production to accept payments.

PostFinance

  1. Install Package
    Use the Our.Orders.postfinance NuGet package manager inside Visual Studio, Xamarin Studio, or run the following command: Package Manager Console:
PM> Install-Package Our.Orders.postfinance

.Net CLI:

dotnet add package Our.Orders.postfinance
  1. Add to startup
public void ConfigureServices(IServiceCollection services, ...)
{
  var postFinancePSPID = "your postFinance PSPID";
  var postFinanceCOM = "your postFinance COM (company name)";
  var postFinanceUSERID = "your postFinance USERID";
  var postFinancePSWD = "your postFinance PSWD";
  var postFinanceSHASIGN = "your postFinance SHASIGN";

  ...
  services
    .AddOurOrders()
    ...
    .UsePostFinance(postFinancePSPID, postFinanceCOM, postFinanceUSERID, postFinancePSWD, postFinanceSHASIGN, true);
  ...
}
  1. Launch the app, test & move to production You should now have the possibility to pay by PostFinance in the checkout view. As soon as you are ready for production, switch the debug mode (last argument of from UsePostFinance) from true to false to accept payments.