README.md in active_merchant-epsilon-0.7.1 vs README.md in active_merchant-epsilon-0.8.0
- old
+ new
@@ -215,11 +215,11 @@
raise StandardError, response.message
end
end
```
-### Recurring Billing (Monthly subscritpion)
+### Recurring Billing (Monthly subscriptions)
```ruby
purchase_detail[:mission_code] = ActiveMerchant::Billing::EpsilonGateway::MissionCode::RECURRING_6
gateway.recurring(amount, creadit_card, purchase_detail)
@@ -239,9 +239,38 @@
### Verify Credit Card
```ruby
gateway.verify(credit_card, user_id: 'user_id', user_email: 'user@example.com')
+```
+
+### GMO ID Settlement
+
+```ruby
+ActiveMerchant::Billing::EpsilonGmoIdGateway.contract_code = 'YOUR_CONTRACT_CODE'
+
+gateway = ActiveMerchant::Billing::EpsilonGmoIdGateway.new
+
+amount = 10000
+
+purchase_detail = {
+ user_id: 'YOUR_APP_USER_IDENTIFIER',
+ user_email: 'yamada-taro@example.com',
+ user_name: 'YAMADA TARO',
+ item_code: 'ITEM001',
+ item_name: 'Golden Product',
+ order_number: 'UNIQUE ORDER NUMBER',
+ gmo_id: 'Your member id of GMO ID',
+ gmo_card_id: 'Your sequential card number of GMO ID',
+}
+
+gateway.purchase(amount, purchase_detail)
+```
+
+### GMO ID Settlement Void Transaction
+
+```ruby
+gateway.void('order_number')
```
### Error handling
If epsilon server returns status excepted 200, `#purchase` method raise `ActiveMerchant::ResponseError`.