public FaspayPaymentCreditTransactionData(FaspayUserCredit usr, String merchant_tranid, String currencycode, long amount) { this.usr = usr; this.merchant_tranid = merchant_tranid; this.currencycode = currencycode; this.amount = amount; }
public CaptureRequestWrapperProd(FaspayUserCredit user, String MERCHANT_TRANID, String TRANSACTIONID, long AMOUNT, String CUSTNAME, String CUSTEMAIL, String DESCRIPTION, String RETURN_URL) { this.merchantid = user.getMerchantId(); this.merchant_tranid = MERCHANT_TRANID; this.transactionid = TRANSACTIONID; this.amount = AMOUNT + ".00"; this.custname = CUSTNAME; this.custemail = CUSTEMAIL; this.description = DESCRIPTION; this.return_url = RETURN_URL; String raw = new StringBuilder().Append("##").Append(user.getMerchantId().ToUpper()).Append("##").Append(user.getPass().ToUpper()).Append("##").Append(merchant_tranid).Append("##").Append(getAmount()).Append("##").Append(TRANSACTIONID).Append("##").ToString(); this.signature = DiggestUtils.sha1(raw); }
public InquiryRequestCreditWrapper(FaspayConfigCredit configCredit, FaspayUserCredit user, String MERCHANT_TRANID, long amount) : base(configCredit) { this.user = user; this.merchant_tranid = MERCHANT_TRANID; this.amount = amount.ToString("0.00", CultureInfo.InvariantCulture); setTransactiontype("4"); setResponse_type("3"); setMerchantid(user.getMerchantId()); setPayment_method("1"); String rawsig = new StringBuilder("##").Append(user.getMerchantId().ToUpper()).Append("##").Append(user.getPass().ToUpper()).Append("##").Append(MERCHANT_TRANID).Append("##").Append(getAmount()).Append("##0##").ToString(); this.signature = DiggestUtils.sha1(rawsig); }
public FaspayPaymentCreditWrapperDev(FaspayUserCredit user, FaspayPaymentCreditTransactionData transactionData, FaspayPaymentCreditShopperData shopperData, FaspayPaymentCreditConfigApp app, FaspayPaymentCreditBillData billData, FaspayPaymentCreditShippingdata shippingdata, FaspayPaymentCreditItemData itemData, FaspayPaymentCreditDomicileData domicileData, FaspayPaymentCreditCardData cardData) { this.card_issuer_bank = cardData.card_issuer_bank; this.card_identity_ref_type = cardData.card_identity_ref_type; this.card_identity_ref = cardData.card_identity_ref; this.card_phone = cardData.card_phone; this.card_bill_addr = cardData.card_bill_addr; this.card_bill_addr_poscode = cardData.card_bill_addr_poscode; this.card_bill_addr_city = cardData.card_bill_addr_city; this.card_bill_addr_region = cardData.card_bill_addr_region; this.card_bill_addr_state = cardData.card_bill_addr_state; this.card_bill_addr_country_code = cardData.card_bill_addr_country_code; this.card_email = cardData.card_email; this.cardData = cardData; this.domicile_address = domicileData.domicile_address; this.domicile_address_city = domicileData.domicile_address_city; this.domicile_address_region = domicileData.domicile_address_region; this.domicile_address_state = domicileData.domicile_address_state; this.domicile_address_poscode = domicileData.domicile_address_poscode; this.domicile_address_country_code = domicileData.domicile_address_country_code; this.domicile_phone_no = domicileData.domicile_phone_no; this.domicileData = domicileData; this.receiver_name_for_shipping = shippingdata.receiver_name_for_shipping; this.shipping_address = shippingdata.shipping_address; this.shipping_address_city = shippingdata.shipping_address_city; this.shipping_address_region = shippingdata.shipping_address_region; this.shipping_address_state = shippingdata.shipping_address_state; this.shipping_address_poscode = shippingdata.shipping_address_poscode; this.shipping_address_country_code = shippingdata.shipping_address_country_code; this.shippingcost = shippingdata.shippingcost; this.shippingdata = shippingdata; this.mref1 = itemData.mref1; this.mref2 = itemData.mref2; this.mref3 = itemData.mref3; this.mref4 = itemData.mref4; this.mref5 = itemData.mref5; this.mref6 = itemData.mref6; this.mref7 = itemData.mref7; this.mref8 = itemData.mref8; this.mref9 = itemData.mref9; this.mref10 = itemData.mref10; this.itemData = itemData; this.response_type = app.response_type; this.return_url = app.return_url; this.mparam1 = app.mparam1; this.mparam2 = app.mparam2; this.frisk1 = app.frisk1; this.frisk2 = app.frisk2; this.handshake_url = app.handshake_url; this.handshake_param = app.handshake_param; this.app = app; this.billing_address = billData.billing_address; this.billing_address_city = billData.billing_address_city; this.billing_address_region = billData.billing_address_region; this.billing_address_state = billData.billing_address_state; this.billing_address_poscode = billData.billing_address_poscode; this.billing_address_country_code = billData.billing_address_country_code; this.billData = billData; setMerchantid(user.getMerchantId()); this.user = user; this.merchant_tranid = transactionData.merchant_tranid; this.currencycode = transactionData.currencycode; this.amount = transactionData.amount + ".00"; this.user = transactionData.usr; this.signature = transactionData.signature; this.transactionData = transactionData; this.custname = shopperData.custname; this.custemail = shopperData.custemail; this.shopper_ip = shopperData.shopper_ip; this.description = shopperData.description; this.cardno = shopperData.cardno; this.cardname = shopperData.cardname; this.cardtype = Char.ToString(shopperData.cardtype); this.expirymonth = shopperData.expirymonth; this.expiryyear = shopperData.expiryyear; this.cardcvc = shopperData.cardcvc; this.card_issuer_bank_country_code = shopperData.card_issuer_bank_country_code; this.phone_no = shopperData.phone_no; this.customer_ref = shopperData.customer_ref; this.shopperData = shopperData; setMerchant_tranid(transactionData.getMerchant_tranid()); //PYMT IND //PYMT CRIT setCurrencycode(transactionData.getCurrencycode()); setAmount((transactionData.getAmount().ToString("0.00"))); setSignature(transactionData.getSignature()); }
public void setUser(FaspayUserCredit user) { this.user = user; }