Skip to content

Commit

Permalink
Merge pull request #75 from danirod/fix-mall-refund
Browse files Browse the repository at this point in the history
Fix call to MallTransaction#refund
  • Loading branch information
mvarlic authored Jun 9, 2022
2 parents db6245f + a2ab0c8 commit 0e96b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transbank/sdk/webpay/webpay_plus/mall_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def status(token)

def refund(token, buy_order, child_commerce_code, amount)

Transbank::Common::Validation.has_text_with_max_length(token, Transbank::Common::ApiConstants::TOKEN_LENGTH, "token")
Transbank::Common::Validation.has_text_with_max_length(buy_order, Transbank::Common::ApiConstants::BUY_ORDER_LENGTH, "buy_order")
Transbank::Common::Validation.has_text_with_max_length(child_commerce_code, Transbank::Common::ApiConstants::COMMERCE_CODE_LENGTH, "child_commerce_code")
Transbank::Common::Validation.has_text_with_max_length(child_buy_order, Transbank::Common::ApiConstants::BUY_ORDER_LENGTH, "child_buy_order")

request_service = ::Transbank::Shared::RequestService.new(
@environment, format(REFUND_ENDPOINT, token: token), @commerce_code, @api_key
Expand Down

0 comments on commit 0e96b80

Please sign in to comment.