add unionpay process for payment

This commit is contained in:
phyusin
2018-01-11 16:08:17 +06:30
parent 2d2a154c17
commit bb2c8694a5
12 changed files with 388 additions and 23 deletions

View File

@@ -512,12 +512,12 @@ class ReceiptBillPdf < Prawn::Document
#start card sale trans data
def card_sale_data(card_data)
move_down 5
stroke_horizontal_rule
move_down 5
if card_data != nil && !card_data.empty?
move_down 5
stroke_horizontal_rule
move_down 5
y_position = cursor
if !card_data.nil?
y_position = cursor
card_data.each do |data|
if data['app'] == 'CUP'
data['app'] = 'UNIONPAY'