README.md in mymoip-0.2.4 vs README.md in mymoip-0.2.5
- old
+ new
@@ -35,11 +35,11 @@
```
**First request: what and from who**
```ruby
payer = MyMoip::Payer.new(
- id: "your_own_id",
+ id: "payer_id_defined_by_you",
name: "Juquinha da Rocha",
email: "juquinha@rocha.com",
address_street: "Felipe Neri",
address_street_number: "406",
address_street_extra: "Sala 501",
@@ -50,17 +50,17 @@
address_cep: "90440-150",
address_phone: "(51)3040-5060"
) # 9 digit phones must be in "(11)93040-5060" format
instruction = MyMoip::Instruction.new(
- id: "your_own_id",
+ id: "instruction_id_defined_by_you",
payment_reason: "Order in Buy Everything Store",
values: [100.0],
payer: payer
)
-transparent_request = MyMoip::TransparentRequest.new("your_own_id")
+transparent_request = MyMoip::TransparentRequest.new("your_logging_id")
transparent_request.api_call(instruction)
```
**Second request: how**
```ruby
@@ -74,10 +74,10 @@
owner_phone: "(51)3040-5060",
owner_rg: "1010202030"
)
credit_card_payment = MyMoip::CreditCardPayment.new(credit_card, installments: 1)
-payment_request = MyMoip::PaymentRequest.new("your_own_id")
+payment_request = MyMoip::PaymentRequest.new("your_logging_id")
payment_request.api_call(credit_card_payment, token: transparent_request.token)
```
**Success?**
```ruby