paymentModule

paymentModule

class to handle payment functions

Constructor

new paymentModule()

Source:

Methods

(async, static) addAppointment(pickup, userID, locationID) → {object}

Source:

Mark Buy now cart as paid

Parameters:
Name Type Description
pickup string

req object

userID number

req.body object

locationID number

req.body object

Returns:

sql response

Type
object

(async, static) addfundDeposit(items, uid) → {object}

Source:

add fund deposit

Parameters:
Name Type Description
items object

items

uid number

user id

Returns:

sql response

Type
object

(async, static) authorizeInsertPayRecord(req, cardDetails, cartValue, data) → {object}

Source:

Mark Buy now cart as paid

Parameters:
Name Type Description
req string

req object

cardDetails number

req.body object

cartValue number

req.body object

data number

req.body object

Returns:

sql response

Type
object

(async, static) checkPaymentLog(cartID, userID)

Source:

check payment log

Parameters:
Name Type Description
cartID number

cart id

userID number

user id

(async, static) creditsUserbalance(items, type)

Source:

credits user balance

Parameters:
Name Type Description
items object

items

type string

type

(async, static) getCartDetails(cardID) → {object}

Source:

Mark Buy now cart as paid

Parameters:
Name Type Description
cardID string

req object

Returns:

sql response

Type
object

(async, static) getMinimumInvoiceID(cardID) → {object}

Source:

Mark Buy now cart as paid

Parameters:
Name Type Description
cardID string

req object

Returns:

sql response

Type
object

(async, static) insertPayLogRequest(cartID, userID, payType, gateWay) → {object}

Source:

Mark Buy now cart as paid

Parameters:
Name Type Description
cartID string

req object

userID number

req.body object

payType number

req.body object

gateWay number

req.body object

Returns:

sql response

Type
object

(async, static) insertPayLogRequestRosoom(req, payCartID, reqData, userID, transID, payType, gateWay, paymentObject)

Source:

insert pay log request rosoom

Parameters:
Name Type Description
req object

request object

payCartID number

pay cart id

reqData object

request data

userID number

user id

transID number

transaction id

payType string

pay type

gateWay string

gate way

paymentObject object

pamyent object

(async, static) insertPayLogResponseRosoom(req, payCartID, resData)

Source:

insert pay log response rosoom

Parameters:
Name Type Description
req object

request object

payCartID number

pay cart id

resData object

respose data

(async, static) markBuyNowPaid(InvoiceID, cartID, paid) → {object}

Source:

Mark Buy now cart as paid

Parameters:
Name Type Description
InvoiceID string

req object

cartID number

req.body object

paid number

count for the pagination

Returns:

sql response

Type
object

(async, static) markCartPaid(paymentType, cartID, paid) → {object}

Source:

Mark cart as paid

Parameters:
Name Type Description
paymentType string

req object

cartID number

req.body object

paid number

count for the pagination

Returns:

sql response

Type
object

(async, static) updateBuynowAppointment(aptnID, cartID) → {object}

Source:

Mark Buy now cart as paid

Parameters:
Name Type Description
aptnID string

req object

cartID number

req.body object

Returns:

sql response

Type
object

(async, static) updatePayLogRequest(data, id, type) → {object}

Source:

Mark Buy now cart as paid

Parameters:
Name Type Description
data string

req object

id number

req.body object

type number

req.body object

Returns:

sql response

Type
object