C# Class BPCSharp.BluePayPayment_BP10Emu

This is the BluePayPayment object.
Show file Open project: BluePay/Payment_Platform Class Usage Examples

Public Properties

Property Type Description
BPheaderstring string
TPS string
URL string
accountID string
accountNum string
accountType string
addr1 string
addr2 string
amount string
amountFood string
amountMisc string
amountTax string
amountTip string
cardExpire string
city string
country string
customID1 string
customID2 string
cvv2 string
doNotEscape string
doRebill string
docType string
email string
excludeErrors string
invoiceID string
masterID string
memo string
mode string
name1 string
name2 string
orderID string
paymentAccount string
paymentType string
phone string
queryByHierarchy string
queryBySettlement string
rebillAmount string
rebillCycles string
rebillExpr string
rebillFirstDate string
rebillID string
rebillNextAmount string
rebillNextDate string
rebillStatus string
reportEndDate string
reportStartDate string
response string
routingNum string
secretKey string
state string
templateID string
transType string
zip string

Public Methods

Method Description
BluePayPayment_BP10Emu ( string accountID, string secretKey, string mode ) : System
Process ( ) : string
Set_Param ( string Name, string Value ) : void
auth ( string amount ) : void

Runs an Auth Transaction

auth ( string amount, string masterID ) : void

Runs an Auth Transaction

calcRebillTPS ( ) : void

Calculates TAMPER_PROOF_SEAL for bp20rebadmin API

calcTPS ( ) : void

Calculates TAMPER_PROOF_SEAL for bp20post API

cancelRebilling ( string rebillID ) : void

Cancels Rebilling Cycle

capture ( string masterID ) : void

Runs a Capture Transaction

capture ( string masterID, string amount ) : void

Runs a Capture Transaction

getAVS ( ) : string

Returns AVS from Response

getAuthCode ( ) : string

Returns AUTH_CODE from Response

getBank ( ) : string

Returns BANK_NAME from Response

getCVV2 ( ) : string

Returns CVV2 from Response

getCardType ( ) : string

Returns CARD_TYPE from response

getCreationDate ( ) : string

Returns creation_date from Response

getCyclesRemain ( ) : string

Returns cycles_remain from Response

getLastDate ( ) : string

Returns last_date from Response

getMaskedPaymentAccount ( ) : string

Returns PAYMENT_ACCOUNT from response

getMessage ( ) : string

Returns MESSAGE from Response

getNextAmount ( ) : string

Returns next_amount from Response

getNextDate ( ) : string

Returns next_date from Response

getRebillAmount ( ) : string

Returns reb_amount from Response

getRebillID ( ) : string

Returns REBID or rebill_id from Response

getRebillStatus ( string rebillID ) : void

Gets a existing rebilling cycle's status

getResponse ( HttpWebRequest request ) : void
getResponse ( WebException request ) : void
getSchedExpr ( ) : string

Returns sched_expr from Response

getStatus ( ) : string

Returns STATUS or status from response

getTransID ( ) : string

Returns TRANS_ID from response

refund ( string masterID ) : void

Runs a Refund Transaction

refund ( string masterID, string amount ) : void

Runs a Refund Transaction

responseParams ( HttpWebResponse httpResponse ) : string
sale ( string amount ) : void

Runs a Sale Transaction

sale ( string amount, string masterID ) : void

Runs a Sale Transaction

setACHInformation ( string routingNum, string accountNum, string accountType, string docType = null ) : void

Sets ACH Information

setAmountFood ( string amountFood ) : void

Sets Amount Food Field

setAmountMisc ( string amountMisc ) : void

Sets Amount Misc Field

setAmountTax ( string amountTax ) : void

Sets Amount Tax Field

setAmountTip ( string amountTip ) : void

Sets Amount Tip Field

setCCInformation ( string cardNum, string cardExpire, string cvv2 = null ) : void

Sets Credit Card Information

setCustomID1 ( string customID1 ) : void

Sets Custom ID Field

setCustomID2 ( string customID2 ) : void

Sets Custom ID2 Field

setCustomerInformation ( string name1, string name2, string addr1, string city, string state, string zip ) : void

Sets Customer Information

setCustomerInformation ( string name1, string name2, string addr1, string addr2, string city, string state, string zip ) : void

Sets Customer Information

setCustomerInformation ( string name1, string name2, string addr1, string addr2, string city, string state, string zip, string country ) : void

Sets Customer Information

setEmail ( string Email ) : void

Sets Email Field

setInvoiceID ( string invoiceID ) : void

Sets Invoice ID Field

setMemo ( string memo ) : void

Sets Memo Field

setOrderID ( string orderID ) : void

Sets Order ID Field

setPhone ( string Phone ) : void

Sets Phone Field

setRebillingInformation ( string rebAmount, string rebFirstDate, string rebExpr, string rebCycles ) : void

Sets Rebilling Cycle Information. To be used with other functions to create a transaction.

updateRebillPaymentInformation ( string templateID ) : void

Updates a rebilling cycle's payment information

updateRebillingInformation ( string rebillID, string rebNextDate, string rebExpr, string rebCycles, string rebAmount, string rebNextAmount ) : void

Updates Rebilling Cycle

voidTransaction ( string masterID ) : void

Private Methods

Method Description
ByteArrayToString ( byte arrInput ) : string

Method Details

BluePayPayment_BP10Emu() public method

public BluePayPayment_BP10Emu ( string accountID, string secretKey, string mode ) : System
accountID string
secretKey string
mode string
return System

Process() public method

public Process ( ) : string
return string

Set_Param() public method

public Set_Param ( string Name, string Value ) : void
Name string
Value string
return void

auth() public method

Runs an Auth Transaction
public auth ( string amount ) : void
amount string
return void

auth() public method

Runs an Auth Transaction
public auth ( string amount, string masterID ) : void
amount string
masterID string
return void

calcRebillTPS() public method

Calculates TAMPER_PROOF_SEAL for bp20rebadmin API
public calcRebillTPS ( ) : void
return void

calcTPS() public method

Calculates TAMPER_PROOF_SEAL for bp20post API
public calcTPS ( ) : void
return void

cancelRebilling() public method

Cancels Rebilling Cycle
public cancelRebilling ( string rebillID ) : void
rebillID string
return void

capture() public method

Runs a Capture Transaction
public capture ( string masterID ) : void
masterID string
return void

capture() public method

Runs a Capture Transaction
public capture ( string masterID, string amount ) : void
masterID string
amount string
return void

getAVS() public method

Returns AVS from Response
public getAVS ( ) : string
return string

getAuthCode() public method

Returns AUTH_CODE from Response
public getAuthCode ( ) : string
return string

getBank() public method

Returns BANK_NAME from Response
public getBank ( ) : string
return string

getCVV2() public method

Returns CVV2 from Response
public getCVV2 ( ) : string
return string

getCardType() public method

Returns CARD_TYPE from response
public getCardType ( ) : string
return string

getCreationDate() public method

Returns creation_date from Response
public getCreationDate ( ) : string
return string

getCyclesRemain() public method

Returns cycles_remain from Response
public getCyclesRemain ( ) : string
return string

getLastDate() public method

Returns last_date from Response
public getLastDate ( ) : string
return string

getMaskedPaymentAccount() public method

Returns PAYMENT_ACCOUNT from response
public getMaskedPaymentAccount ( ) : string
return string

getMessage() public method

Returns MESSAGE from Response
public getMessage ( ) : string
return string

getNextAmount() public method

Returns next_amount from Response
public getNextAmount ( ) : string
return string

getNextDate() public method

Returns next_date from Response
public getNextDate ( ) : string
return string

getRebillAmount() public method

Returns reb_amount from Response
public getRebillAmount ( ) : string
return string

getRebillID() public method

Returns REBID or rebill_id from Response
public getRebillID ( ) : string
return string

getRebillStatus() public method

Gets a existing rebilling cycle's status
public getRebillStatus ( string rebillID ) : void
rebillID string
return void

getResponse() public method

public getResponse ( HttpWebRequest request ) : void
request System.Net.HttpWebRequest
return void

getResponse() public method

public getResponse ( WebException request ) : void
request System.Net.WebException
return void

getSchedExpr() public method

Returns sched_expr from Response
public getSchedExpr ( ) : string
return string

getStatus() public method

Returns STATUS or status from response
public getStatus ( ) : string
return string

getTransID() public method

Returns TRANS_ID from response
public getTransID ( ) : string
return string

refund() public method

Runs a Refund Transaction
public refund ( string masterID ) : void
masterID string
return void

refund() public method

Runs a Refund Transaction
public refund ( string masterID, string amount ) : void
masterID string
amount string
return void

responseParams() public method

public responseParams ( HttpWebResponse httpResponse ) : string
httpResponse System.Net.HttpWebResponse
return string

sale() public method

Runs a Sale Transaction
public sale ( string amount ) : void
amount string
return void

sale() public method

Runs a Sale Transaction
public sale ( string amount, string masterID ) : void
amount string
masterID string
return void

setACHInformation() public method

Sets ACH Information
public setACHInformation ( string routingNum, string accountNum, string accountType, string docType = null ) : void
routingNum string
accountNum string
accountType string
docType string
return void

setAmountFood() public method

Sets Amount Food Field
public setAmountFood ( string amountFood ) : void
amountFood string
return void

setAmountMisc() public method

Sets Amount Misc Field
public setAmountMisc ( string amountMisc ) : void
amountMisc string
return void

setAmountTax() public method

Sets Amount Tax Field
public setAmountTax ( string amountTax ) : void
amountTax string
return void

setAmountTip() public method

Sets Amount Tip Field
public setAmountTip ( string amountTip ) : void
amountTip string
return void

setCCInformation() public method

Sets Credit Card Information
public setCCInformation ( string cardNum, string cardExpire, string cvv2 = null ) : void
cardNum string
cardExpire string
cvv2 string
return void

setCustomID1() public method

Sets Custom ID Field
public setCustomID1 ( string customID1 ) : void
customID1 string
return void

setCustomID2() public method

Sets Custom ID2 Field
public setCustomID2 ( string customID2 ) : void
customID2 string
return void

setCustomerInformation() public method

Sets Customer Information
public setCustomerInformation ( string name1, string name2, string addr1, string city, string state, string zip ) : void
name1 string
name2 string
addr1 string
city string
state string
zip string
return void

setCustomerInformation() public method

Sets Customer Information
public setCustomerInformation ( string name1, string name2, string addr1, string addr2, string city, string state, string zip ) : void
name1 string
name2 string
addr1 string
addr2 string
city string
state string
zip string
return void

setCustomerInformation() public method

Sets Customer Information
public setCustomerInformation ( string name1, string name2, string addr1, string addr2, string city, string state, string zip, string country ) : void
name1 string
name2 string
addr1 string
addr2 string
city string
state string
zip string
country string
return void

setEmail() public method

Sets Email Field
public setEmail ( string Email ) : void
Email string
return void

setInvoiceID() public method

Sets Invoice ID Field
public setInvoiceID ( string invoiceID ) : void
invoiceID string
return void

setMemo() public method

Sets Memo Field
public setMemo ( string memo ) : void
memo string
return void

setOrderID() public method

Sets Order ID Field
public setOrderID ( string orderID ) : void
orderID string
return void

setPhone() public method

Sets Phone Field
public setPhone ( string Phone ) : void
Phone string
return void

setRebillingInformation() public method

Sets Rebilling Cycle Information. To be used with other functions to create a transaction.
public setRebillingInformation ( string rebAmount, string rebFirstDate, string rebExpr, string rebCycles ) : void
rebAmount string
rebFirstDate string
rebExpr string
rebCycles string
return void

updateRebillPaymentInformation() public method

Updates a rebilling cycle's payment information
public updateRebillPaymentInformation ( string templateID ) : void
templateID string
return void

updateRebillingInformation() public method

Updates Rebilling Cycle
public updateRebillingInformation ( string rebillID, string rebNextDate, string rebExpr, string rebCycles, string rebAmount, string rebNextAmount ) : void
rebillID string
rebNextDate string
rebExpr string
rebCycles string
rebAmount string
rebNextAmount string
return void

voidTransaction() public method

public voidTransaction ( string masterID ) : void
masterID string
return void

Property Details

BPheaderstring public property

public string BPheaderstring
return string

TPS public property

public string TPS
return string

URL public property

public string URL
return string

accountID public property

public string accountID
return string

accountNum public property

public string accountNum
return string

accountType public property

public string accountType
return string

addr1 public property

public string addr1
return string

addr2 public property

public string addr2
return string

amount public property

public string amount
return string

amountFood public property

public string amountFood
return string

amountMisc public property

public string amountMisc
return string

amountTax public property

public string amountTax
return string

amountTip public property

public string amountTip
return string

cardExpire public property

public string cardExpire
return string

city public property

public string city
return string

country public property

public string country
return string

customID1 public property

public string customID1
return string

customID2 public property

public string customID2
return string

cvv2 public property

public string cvv2
return string

doNotEscape public property

public string doNotEscape
return string

doRebill public property

public string doRebill
return string

docType public property

public string docType
return string

email public property

public string email
return string

excludeErrors public property

public string excludeErrors
return string

invoiceID public property

public string invoiceID
return string

masterID public property

public string masterID
return string

memo public property

public string memo
return string

mode public property

public string mode
return string

name1 public property

public string name1
return string

name2 public property

public string name2
return string

orderID public property

public string orderID
return string

paymentAccount public property

public string paymentAccount
return string

paymentType public property

public string paymentType
return string

phone public property

public string phone
return string

queryByHierarchy public property

public string queryByHierarchy
return string

queryBySettlement public property

public string queryBySettlement
return string

rebillAmount public property

public string rebillAmount
return string

rebillCycles public property

public string rebillCycles
return string

rebillExpr public property

public string rebillExpr
return string

rebillFirstDate public property

public string rebillFirstDate
return string

rebillID public property

public string rebillID
return string

rebillNextAmount public property

public string rebillNextAmount
return string

rebillNextDate public property

public string rebillNextDate
return string

rebillStatus public property

public string rebillStatus
return string

reportEndDate public property

public string reportEndDate
return string

reportStartDate public property

public string reportStartDate
return string

response public property

public string response
return string

routingNum public property

public string routingNum
return string

secretKey public property

public string secretKey
return string

state public property

public string state
return string

templateID public property

public string templateID
return string

transType public property

public string transType
return string

zip public property

public string zip
return string