From e66a419fe9a8aeb6ee22b41bce14a7f46d6b2371 Mon Sep 17 00:00:00 2001 From: Charles Washington <34602039+caws@users.noreply.github.com> Date: Mon, 15 Jul 2019 22:19:31 -0300 Subject: [PATCH] Fix typo in example Proposing this to fix a typo in payment-with-pre-authorization.rb file. Line 82 says api.payment.catpure(payment.id) when the correct method name is capture. --- examples/marketplace/payment-with-pre-authorization.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/marketplace/payment-with-pre-authorization.rb b/examples/marketplace/payment-with-pre-authorization.rb index 54d9e91..2e6c8ee 100644 --- a/examples/marketplace/payment-with-pre-authorization.rb +++ b/examples/marketplace/payment-with-pre-authorization.rb @@ -79,7 +79,7 @@ }) # Capture pre authorized payment -api.payment.catpure(payment.id) +api.payment.capture(payment.id) # TIP: To get your application synchronized to Moip's platform, # you should have a route that handles Webhooks.