Пример #1
0
		//ncrunch: no coverage start
		public override bool PurchaseProductAsync(ProductData product)
		{
			Process.Start(GeneratePaymentLink(product));
			// Need verification of payment callback, this can only be done server-side and need to
			// pushed/polled back to the client.
			InvokeOnTransactionFinished(product, true);
			return true;
		}
Пример #2
0
		internal string GeneratePaymentLink(ProductData product)
		{
			return "https://www.paypal.com/cgi-bin/webscr?cmd=_donations" +
				"&business=" + merchantEmailAddress +
				"&lc=" + countryCode +
				"&item_name=" + product.Id +
				"&currency_code=" + currencyCode +
				"&amount=" + product.Price.ToString(CultureInfo.InvariantCulture) +
				"&bn=PP%2dDonationsBF";
		}