Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (21 sloc) 0.956 kB
76dda2d @Ermak-13 The first release
authored
1 BANK AUDI
2 =========
3
4 Bank Audi is the largest bank of Lebanon. This gem help to integrate with bank system
5 (Audi Virtual Payment Client. It is similiar to PayPal)
6
7 MAIN STEPS
8 ----------
9
10 1. Merchant Form Submission
11 2. Pre-Payment Process
12 3. Payment Process
13 4. Merchant Response Code
14
15
16 BASIC MOMENTS
17 -------------
18
19 1. Request create `BankAudi::Request.new(attributes)`.
20 2. Attributes as secret_code, access_code, merchant, url (where you create request) you
21 should set in config/bank_audi.yml
22 3. You should set :merchant_txn_ref, order_info, amount & return_url
23 4. You can update update request `request.attributes = {}; request.amount = 100;`
24 5. Get request url (with params) `request.full_url`
25 6. Response create `BankAudi::Response.new(attributes)`
26 7. Check valid of response `response.valid?` (The invalid reason are bad secure hash & bad response code)
27 8. You can get messafe of errors if your object (request or response) is invalid? `object.errors`
Something went wrong with that request. Please try again.