Skip to content

Commit

Permalink
Merge branch 'gitlab-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason authored and Mason committed May 17, 2021
2 parents 871475a + 9cd1d97 commit ff73722
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# About Paymentwall
[Paymentwall](http://paymentwall.com/?source=gh) is the leading digital payments platform for globally monetizing digital goods and services. Paymentwall assists game publishers, dating sites, rewards sites, SaaS companies and many other verticals to monetize their digital content and services.
Merchants can plugin Paymentwall's API to accept payments from over 100 different methods including credit cards, debit cards, bank transfers, SMS/Mobile payments, prepaid cards, eWallets, landline payments and others.
[Paymentwall](https://www.paymentwall.com/?source=gh) is the leading global payments platform.

In order to sign up for a Paymentwall Merchant Account, [click here](http://paymentwall.com/signup/merchant?source=gh).
Merchants can plugin Paymentwall's API to accept payments from over 150 different methods including credit cards, debit cards, bank transfers, SMS/Mobile payments, prepaid cards, eWallets, landline payments and others.

To sign up for a Paymentwall Merchant Account, [click here](https://www.paymentwall.com/signup/merchant?source=gh).

# Paymentwall C# Library
This library allows developers to use [Paymentwall APIs](http://paymentwall.com/en/documentation/API-Documentation/722?source=gh) (Virtual Currency, Digital Goods featuring recurring billing, and Virtual Cart).
This library allows developers to use [Paymentwall APIs](https://docs.paymentwall.com/?source=gh) (Digital Goods API, Cart API, Brick API, Virtual Currency API).

To use Paymentwall, all you need to do is to sign up for a Paymentwall Merchant Account so you can setup a project designed for your site.
To open your merchant account and set up an project, you can [sign up here](http://paymentwall.com/signup/merchant?source=gh).
To open your merchant account and set up an project, you can [sign up here](https://www.paymentwall.com/signup/merchant?source=gh).

# Installation
We recommend to use NuGet for installing Paymentwall library. To install Paymentwall, please run the following command in the Package Manager Console
Expand All @@ -30,7 +31,7 @@ Paymentwall_Base.setSecretKey("YOUR_SECRET_KEY"); // available in your Paymentwa
```

#### Widget Call
[Web API details](http://www.paymentwall.com/en/documentation/Digital-Goods-API/710#paymentwall_widget_call_flexible_widget_call)
[Checkout API details](https://docs.paymentwall.com/integration/checkout-home)

The widget is a payment page hosted by Paymentwall that embeds the entire payment flow: selecting the payment method, completing the billing details, and providing customer support via the Help section. You can redirect the users to this page or embed it via iframe. Below is an example that renders an iframe with Paymentwall Widget.
```
Expand Down Expand Up @@ -138,8 +139,8 @@ Paymentwall_Base.setSecretKey("YOUR_SECRET_KEY"); // available in your Paymentwa
List<Paymentwall_Product> productList = new List<Paymentwall_Product>();
productList.AddRange(
new List<Paymentwall_Product>() {
new Paymentwall_Product("product301", 3.33f, "EUR"), //first product on cart
new Paymentwall_Product("product607", 7.77f, "EUR") //second product on cart
new Paymentwall_Product("product301", 3.33f, "EUR", "Product name 1"), //first product on cart
new Paymentwall_Product("product607", 7.77f, "EUR", "Product name 2") //second product on cart
}
);
Paymentwall_Widget widget = new Paymentwall_Widget(
Expand Down
6 changes: 3 additions & 3 deletions src/paymentwall.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Paymentwall</id>
<version>1.0.3</version>
<version>1.0.4</version>
<title>Paymentwall ASP.NET Library</title>
<authors>Paymentwall, Inc.</authors>
<owners>Paymentwall, Inc.</owners>
Expand All @@ -11,8 +11,8 @@
<iconUrl>https://api.paymentwall.com/content/design/files/developers/github/paymentwall-128x128.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Paymentwall is the leading digital payments platform for globally monetizing digital goods and services. Paymentwall assists game publishers, dating sites, rewards sites, SaaS companies and many other verticals to monetize their digital content and services. Merchants can plugin Paymentwall's API to accept payments from over 100 different methods including credit cards, debit cards, bank transfers, SMS/Mobile payments, prepaid cards, eWallets, landline payments and others.</description>
<releaseNotes>Paymentwall ASP.NET Library version 1.0.2</releaseNotes>
<copyright>Copyright (c) 2010-2015 Paymentwall, Inc.</copyright>
<releaseNotes>Paymentwall ASP.NET Library version 1.0.4</releaseNotes>
<copyright>Copyright (c) 2010-2021 Paymentwall, Inc.</copyright>
<tags>Paymentwall, payment, ASP.NET, money, credit cards, subscriptions</tags>
</metadata>
<files>
Expand Down
5 changes: 5 additions & 0 deletions src/paymentwall/Paymentwall_Widget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ public string getUrl()
parameters.Add("currencies[" + index.ToString() + "]", product.getCurrencyCode());
}

if (product.getName() != null)
{
parameters.Add("names[" + index.ToString() + "]", product.getName());
}

index++;
}

Expand Down

0 comments on commit ff73722

Please sign in to comment.