C# 클래스 Payment_App1, API-Platform

Default Class
상속: System.Web.UI.Page
파일 보기 프로젝트 열기: attdevsupport/API-Platform

공개 메소드들

메소드 설명
AddRowToRefundSection ( string transaction, string merchant ) : void

Method to add row to refund section.

BypassCertificateError ( ) : void

This function is used to neglect the ssl handshake error with authentication server.

CheckItemInRefundFile ( string transactionid, string merchantTransactionId ) : bool

Method to check item in refund file.

DrawRefundSection ( bool onlyRow ) : void

Method to draw refund section

GetAccessToken ( int type, Panel panelParam ) : bool

This function get the access token based on the type parameter type values. If type value is 1, access token is fetch for client credential flow If type value is 2, access token is fetch for client credential flow based on the exisiting refresh token

GetRefundListFromFile ( ) : void

Method to get refung list from file.

IsTokenValid ( ) : string

This function validates the expiry of the access token and refresh token, function compares the current time with the refresh token taken time, if current time is greater then returns INVALID_REFRESH_TOKEN function compares the difference of last access token taken time and the current time with the expiry seconds, if its more, function returns INVALID_ACCESS_TOKEN otherwise returns VALID_ACCESS_TOKEN

ProcessCreateTransactionResponse ( ) : void

Method to process create transaction response

ReadAccessTokenFile ( ) : bool

This function reads the Access Token File and stores the values of access token, expiry seconds refresh token, last access token time and refresh token expiry time This function returns true, if access token file and all others attributes read successfully otherwise returns false

ReadAndGetAccessToken ( Panel panelParam ) : bool

This function is used to read access token file and validate the access token this function returns true if access token is valid, or else false is returned

ResetRefundList ( ) : void

Method to reset refund list

UpdateRefundListToFile ( ) : void

Method to update refund list to file.

WriteRefundToFile ( string transactionid, string merchantTransactionId ) : void

Method to write refund to file.

보호된 메소드들

메소드 설명
BtnGetNotification_Click ( object sender, EventArgs e ) : void

Method to be triggered on Get Notification button click

BtnRefundTransaction_Click1 ( object sender, EventArgs e ) : void

Event for refund transaction

BtnViewNotary_Click ( object sender, EventArgs e ) : void

Event to view notary

GetTransactionButton_Click ( object sender, EventArgs e ) : void

Event to get transaction.

NewTransactionButton_Click ( object sender, EventArgs e ) : void

New Transaction event

Page_Load ( object sender, EventArgs e ) : void

Page Load method

비공개 메소드들

메소드 설명
AddRowToGetTransactionSuccessPanel ( Panel panelParam, string attribute, string value ) : void

This function adds row to the success table.

AddRowToNotificationTable ( string notificationId, string notificationType, string transactionId ) : void

Method to add rows to notification response table with notification details

AddRowToRefundSuccessPanel ( Panel panelParam, string attribute, string value ) : void

This function adds row to the refund success table.

AddRowToSuccessPanel ( Panel panelParam, string attribute, string value ) : void

Method to add row to the success table

ClearRefundTable ( ) : void

Method to clear refund table.

DrawNotificationTableHeaders ( ) : void

Method to display notification response table with headers

DrawPanelForFailure ( Panel panelParam, string message ) : void

Method to draws error table.

DrawPanelForGetTransactionSuccess ( Panel panelParam ) : void

Method to draw panel for successful transaction

DrawPanelForRefundSuccess ( Panel panelParam ) : void

Method to draw panel for refund success

DrawPanelForSuccess ( Panel panelParam ) : void

Method to draw the success table

GetNotificationDetails ( ) : void

Method to get notification details

ProcessNotaryResponse ( ) : void

Method to process notary response

ReadConfigFile ( ) : bool

Reads from config file

ReadTransactionParametersFromConfigurationFile ( ) : void

Method to read transaction parameters from configuration file.

메소드 상세

AddRowToRefundSection() 공개 메소드

Method to add row to refund section.
public AddRowToRefundSection ( string transaction, string merchant ) : void
transaction string Transaction as String
merchant string Merchant as string
리턴 void

BtnGetNotification_Click() 보호된 메소드

Method to be triggered on Get Notification button click
protected BtnGetNotification_Click ( object sender, EventArgs e ) : void
sender object Sender Information
e EventArgs List of Arguments
리턴 void

BtnRefundTransaction_Click1() 보호된 메소드

Event for refund transaction
protected BtnRefundTransaction_Click1 ( object sender, EventArgs e ) : void
sender object Sender Information
e EventArgs List of Arguments
리턴 void

BtnViewNotary_Click() 보호된 메소드

Event to view notary
protected BtnViewNotary_Click ( object sender, EventArgs e ) : void
sender object Sender Information
e EventArgs List of Arguments
리턴 void

BypassCertificateError() 공개 정적인 메소드

This function is used to neglect the ssl handshake error with authentication server.
public static BypassCertificateError ( ) : void
리턴 void

CheckItemInRefundFile() 공개 메소드

Method to check item in refund file.
public CheckItemInRefundFile ( string transactionid, string merchantTransactionId ) : bool
transactionid string Transaction Id
merchantTransactionId string Merchant Transaction Id
리턴 bool

DrawRefundSection() 공개 메소드

Method to draw refund section
public DrawRefundSection ( bool onlyRow ) : void
onlyRow bool Row details
리턴 void

GetAccessToken() 공개 메소드

This function get the access token based on the type parameter type values. If type value is 1, access token is fetch for client credential flow If type value is 2, access token is fetch for client credential flow based on the exisiting refresh token
public GetAccessToken ( int type, Panel panelParam ) : bool
type int Type as Interger
panelParam Panel Panel Details
리턴 bool

GetRefundListFromFile() 공개 메소드

Method to get refung list from file.
public GetRefundListFromFile ( ) : void
리턴 void

GetTransactionButton_Click() 보호된 메소드

Event to get transaction.
protected GetTransactionButton_Click ( object sender, EventArgs e ) : void
sender object Sender Information
e EventArgs List of Arguments
리턴 void

IsTokenValid() 공개 메소드

This function validates the expiry of the access token and refresh token, function compares the current time with the refresh token taken time, if current time is greater then returns INVALID_REFRESH_TOKEN function compares the difference of last access token taken time and the current time with the expiry seconds, if its more, function returns INVALID_ACCESS_TOKEN otherwise returns VALID_ACCESS_TOKEN
public IsTokenValid ( ) : string
리턴 string

NewTransactionButton_Click() 보호된 메소드

New Transaction event
protected NewTransactionButton_Click ( object sender, EventArgs e ) : void
sender object Sender Information
e EventArgs List of Arguments
리턴 void

Page_Load() 보호된 메소드

Page Load method
protected Page_Load ( object sender, EventArgs e ) : void
sender object Sender Information
e EventArgs List of Arguments
리턴 void

ProcessCreateTransactionResponse() 공개 메소드

Method to process create transaction response
public ProcessCreateTransactionResponse ( ) : void
리턴 void

ReadAccessTokenFile() 공개 메소드

This function reads the Access Token File and stores the values of access token, expiry seconds refresh token, last access token time and refresh token expiry time This function returns true, if access token file and all others attributes read successfully otherwise returns false
public ReadAccessTokenFile ( ) : bool
리턴 bool

ReadAndGetAccessToken() 공개 메소드

This function is used to read access token file and validate the access token this function returns true if access token is valid, or else false is returned
public ReadAndGetAccessToken ( Panel panelParam ) : bool
panelParam Panel Panel Details
리턴 bool

ResetRefundList() 공개 메소드

Method to reset refund list
public ResetRefundList ( ) : void
리턴 void

UpdateRefundListToFile() 공개 메소드

Method to update refund list to file.
public UpdateRefundListToFile ( ) : void
리턴 void

WriteRefundToFile() 공개 메소드

Method to write refund to file.
public WriteRefundToFile ( string transactionid, string merchantTransactionId ) : void
transactionid string Transaction Id
merchantTransactionId string Merchant Transaction Id
리턴 void