Sha256: 1d6840df1c793a9602c97b8b8c7bcccc7909aee86dfbd4094b00a707ef44f65f

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

# credit_href is the stored href for the Credit
# order_href is the stored href for the Order
credit = Balanced::Credit.fetch(credit_href)
reversal = credit.reverse(
  :amount => 100000,
  :description => 'Reversal for Order #1111',
  :meta => {
    'merchant.feedback' => 'positive',
    'fulfillment.item.condition' => 'OK',
    'user.refund_reason' => 'not happy with product'
  },
  :order => order_href
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
balanced-1.2.1 snippets/reversal-create.rb