Mangopay / mangopay2-ruby-sdk

Ruby Gem for MANGOPAY
https://rubygems.org/gems/mangopay
MIT License
42 stars 38 forks source link

Effectuer un refund sur un payin #180

Closed AlexGrondin10 closed 3 years ago

AlexGrondin10 commented 3 years ago

Bonjour,

D'après la doc du SDK, on peut seulement fetch un refund et non en créé un. Comment fait-on pour faire un refund sur un payin ?

mangomaxoasis commented 3 years ago

Hi @AlexGrondin10 It's possible, use : refund = MangoPay::PayIn.refund(payin[‘Id’], {AuthorId: payin[‘AuthorId’]}) The base refund call is in https://github.com/Mangopay/mangopay2-ruby-sdk/blob/master/lib/mangopay/http_calls.rb Cheers

mangomaxoasis commented 3 years ago

Hi @AlexGrondin10 I'm closing this, let me know if the issue persists