Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
taliyada committed Feb 6, 2024
1 parent 48e8f38 commit 914e04a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,18 @@ custom_headers = {

custom_request_options = Mercadopago::RequestOptions.new(custom_headers: custom_headers)

payment_request = {
transaction_amount: 100,
token: 'CARD_TOKEN',
installments: 1,
payer: {
type: 'customer',
id: '123456789-jxOV430go9fx2e'
payment_data = {
transaction_amount: 100,
token: 'CARD_TOKEN',
description: 'Payment description',
payment_method_id: 'visa',
installments: 1,
payer: {
email: 'test_user_123456@testuser.com'
}
}
payment_response = sdk.payment.create(payment_request, custom_request_options)
payment = payment_response[:response]
result = sdk.payment.create(payment_data, custom_request_options)
payment = result[:response]

puts payment
```
Expand Down

0 comments on commit 914e04a

Please sign in to comment.