README.md in veritrans-2.0.4 vs README.md in veritrans-2.1.0
- old
+ new
@@ -28,10 +28,13 @@
development:
client_key: # your api client key
server_key: # your api client key
```
+See out example sinatra application in [example](https://github.com/veritrans/veritrans-ruby/tree/master/example) folder or [online](https://veritrans-ruby-example.herokuapp.com/)
+
+
## STEP 1: Process credit cards
#### VT-Web
@@ -250,15 +253,19 @@
Veritrans.setup do
config.server_key = "..."
config.client_key = "..."
events.subscribe('payment.success') do |payment|
- Payment.find_by(order_id: payment.order_id).mark_paid!(payment.masked_card)
+ # payment variable is hash with params recieved from Veritrans
+ # assuming you have model Order in your project
+ Order.find_by(order_id: payment.order_id).mark_paid!(payment.masked_card)
end
events.subscribe('payment.failed', 'payment.challenge') do |payment|
- Payment.find_by(order_id: payment.order_id) ...
+ # payment variable is hash with params recieved from Veritrans
+ # assuming you have model Order in your project
+ Order.find_by(order_id: payment.order_id) ...
end
end
```
#### Logging
@@ -296,10 +303,10 @@
#### Get help
-* [Veritrans gem reference](https://github.com/veritrans/veritrans-ruby/blob/new_api/api_reference.md)
-* [Veritrans sandbox login](https://my.sandbox.veritrans.co.id/login)
-* [Veritrans sandbox registration](https://my.sandbox.veritrans.co.id/register)
+* [Veritrans gem reference](https://github.com/veritrans/veritrans-ruby/blob/master/api_reference.md)
+* [Veritrans login](https://my.veritrans.co.id/login)
+* [Veritrans registration](https://my.veritrans.co.id/register)
* [Veritrans documentation](http://docs.veritrans.co.id)
* Technical support [support@veritrans.co.id](mailto:support@veritrans.co.id)