//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; }
internal string GeneratePaymentLink(ProductData product) { return "https://www.paypal.com/cgi-bin/webscr?cmd=_donations" + "&business=" + merchantEmailAddress + "&lc=" + countryCode + "&item_name=" + product.Id + "¤cy_code=" + currencyCode + "&amount=" + product.Price.ToString(CultureInfo.InvariantCulture) + "&bn=PP%2dDonationsBF"; }