From fa7a08f57a8ef7605bcd5a240b4cef9b524b537a Mon Sep 17 00:00:00 2001 From: Mason Date: Fri, 14 May 2021 19:49:55 +0700 Subject: [PATCH 1/4] Fix missing product name in the widget url --- src/paymentwall.nuspec | 4 ++-- src/paymentwall/Paymentwall_Widget.cs | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/paymentwall.nuspec b/src/paymentwall.nuspec index 1537415..e718de1 100644 --- a/src/paymentwall.nuspec +++ b/src/paymentwall.nuspec @@ -2,7 +2,7 @@ Paymentwall - 1.0.3 + 1.0.4 Paymentwall ASP.NET Library Paymentwall, Inc. Paymentwall, Inc. @@ -11,7 +11,7 @@ https://api.paymentwall.com/content/design/files/developers/github/paymentwall-128x128.png false 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. - Paymentwall ASP.NET Library version 1.0.2 + Paymentwall ASP.NET Library version 1.0.4 Copyright (c) 2010-2015 Paymentwall, Inc. Paymentwall, payment, ASP.NET, money, credit cards, subscriptions diff --git a/src/paymentwall/Paymentwall_Widget.cs b/src/paymentwall/Paymentwall_Widget.cs index a57719c..de26970 100644 --- a/src/paymentwall/Paymentwall_Widget.cs +++ b/src/paymentwall/Paymentwall_Widget.cs @@ -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++; } From 49e0e8a7d643152c3cb38ac9b4709591931084c3 Mon Sep 17 00:00:00 2001 From: Mason Date: Fri, 14 May 2021 19:53:29 +0700 Subject: [PATCH 2/4] Update --- src/paymentwall.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paymentwall.nuspec b/src/paymentwall.nuspec index e718de1..996a393 100644 --- a/src/paymentwall.nuspec +++ b/src/paymentwall.nuspec @@ -12,7 +12,7 @@ false 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. Paymentwall ASP.NET Library version 1.0.4 - Copyright (c) 2010-2015 Paymentwall, Inc. + Copyright (c) 2010-2021 Paymentwall, Inc. Paymentwall, payment, ASP.NET, money, credit cards, subscriptions From 587438049e3b4dee6770e27c247a99416f40275f Mon Sep 17 00:00:00 2001 From: richardtong Date: Mon, 17 May 2021 10:48:18 +0700 Subject: [PATCH 3/4] update readme --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 04c4985..688f08e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) +[Web 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. ``` @@ -138,15 +139,15 @@ Paymentwall_Base.setSecretKey("YOUR_SECRET_KEY"); // available in your Paymentwa List productList = new List(); productList.AddRange( new List() { - 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( "user40012", // id of the end-user who's making the payment "p1_1", // widget code, e.g. p1; can be picked inside of your merchant account productList, - new Dictionary() {{"email", "user@hostname.com"}} // additional parameters + new Dictionary() {{"email", "user@hostname.com"}, {"flexible_cart_api", "1"}} // additional parameters, use flexible_cart_api param to apply name passed via widget ); Response.Write(widget.getHtmlCode()); ``` From e69bc494cbbaf7eb689ae7f5ae5c2d4e64b8e882 Mon Sep 17 00:00:00 2001 From: richardtong Date: Mon, 17 May 2021 11:33:29 +0700 Subject: [PATCH 4/4] update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 688f08e..08d5aaf 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Paymentwall_Base.setSecretKey("YOUR_SECRET_KEY"); // available in your Paymentwa ``` #### Widget Call -[Web API details](https://docs.paymentwall.com/integration/checkout-home) +[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. ``` @@ -147,7 +147,7 @@ Paymentwall_Widget widget = new Paymentwall_Widget( "user40012", // id of the end-user who's making the payment "p1_1", // widget code, e.g. p1; can be picked inside of your merchant account productList, - new Dictionary() {{"email", "user@hostname.com"}, {"flexible_cart_api", "1"}} // additional parameters, use flexible_cart_api param to apply name passed via widget + new Dictionary() {{"email", "user@hostname.com"}} // additional parameters ); Response.Write(widget.getHtmlCode()); ```