//This your API Key icharge.MerchantLogin = "YOUR API KEY";
// Square also requires that you set a unique idempotency key for each // Sale/Auth-Only/Refund request. Refer to the Square documentation // (https://developer.squareup.com/reference/square) for more information. icharge.Config("SquareIdempotencyKey="+ DateTime.Now.Ticks);
// The ICharge component can only be used to charge a transaction with a card // nonce that is already generated via Square's payment form. The following is // a test card nonce from // https://developer.squareup.com/docs/testing/test-values#square-api-endpoint-testing icharge.Config("CardToken=cnon:card-nonce-ok");
// Alternatively, a Square customer card Id can be used instead of a card nonce. // In this case, a Square customer Id must also be specified. This will cause the // card on file in the specified customer profile to be used as the payment method.
// Note that you can specify a customer Id anytime... icharge.Customer.Id = "fake-customer-id-ok"; // ...But you *must* specify a customer Id in order to use a customer card Id. icharge.Config("CardToken=ccof:customer-card-id-ok");
icharge.TransactionAmount = "100"; //100 means $1.00
icharge.Sale();
HSBCpayment systems in the us
icharge.Gateway = IchargeGateways.gwHSBC;
//This is the User ID for your account. icharge.MerchantLogin = "userId";
//This is the Password for your User ID icharge.MerchantPassword = "password";
//This gets set to the Client Id property icharge.Config("TerminalId=ClientID");
//Note you must set the CurrencyCode to the type of currency //that is set on your merchant account. By default, "840" is //set, which is USD. Most accounts will be "826" for Pounds Sterling. icharge.Config("CurrencyCode=826");