Subversion Repositories SmartDukaan

Rev

Rev 6486 | Rev 6978 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6486 Rev 6503
Line 108... Line 108...
108
	16:list<Attribute> attributes,  	// list of all attributes received from PG
108
	16:list<Attribute> attributes,  	// list of all attributes received from PG
109
	17:i64 initTimestamp,			//statring the payment processing timestamp
109
	17:i64 initTimestamp,			//statring the payment processing timestamp
110
	18:i64 successTimestamp,		//timestamp when payment is captured
110
	18:i64 successTimestamp,		//timestamp when payment is captured
111
	19:i64 errorTimestamp,			// in case, error is received from PG
111
	19:i64 errorTimestamp,			// in case, error is received from PG
112
	20:i64 provisionalCaptureTimestamp, // in case, error is received from PG
112
	20:i64 provisionalCaptureTimestamp, // in case, error is received from PG
113
	21:bool isDigital
113
	21:bool isDigital,
-
 
114
	22:double refundAmount
114
}
115
}
115
 
116
 
116
struct Refund{
117
struct Refund{
117
	1:i64 id,
118
	1:i64 id,
118
	2:i64 paymentId,
119
	2:i64 paymentId,
Line 234... Line 235...
234
	*/
235
	*/
235
	bool capturePayment(1:i64 merchantTxnId) throws (1:PaymentException pe),
236
	bool capturePayment(1:i64 merchantTxnId) throws (1:PaymentException pe),
236
	
237
	
237
	/**
238
	/**
238
	Refund the payment for the given merchant transaction id. It processes the last payment for the given
239
	Refund the payment for the given merchant transaction id. It processes the last payment for the given
239
	transaction. PaymentException with error code 104 is thrown in case no payments are found for the transaction id passed.
240
	transaction. If refund will be failed nothing will be updated in database.
240
	PaymentException is also thrown with error code 106 in case capture was not possible due to connection
-
 
241
	issue. Here, we	payment also gets updated to CAPTURE_INPROCESS state
-
 
242
	*/
241
	*/
243
	bool refundPayment(1:i64 merchantTxnId, 2:double amount, 3:bool isDigital) throws (1:PaymentException pe),
242
	bool refundPayment(1:i64 merchantTxnId, 2:double amount, 3:bool isDigital) throws (1:PaymentException pe),
244
	
243
	
245
	
244
	
246
	/**
245
	/**