Sha256: 47fdf454c1a2156ed999a897919ccd3da1e2754faa52594ca45786b6d80dd783
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
<%= boiler_plate %> merchant_data = { <%= params_to_hash.call(payload['merchant']).indent(2) %>, } account = Balanced::Marketplace.my_marketplace.create_account begin account.promote_to_merchant(merchant_data) rescue Balanced::MoreInformationRequired => error # could not identify this account. puts 'redirect merchant to: ' + error.redirect_uri rescue Balanced::Error => error # TODO: handle 400 and 409 exceptions as required raise end
Version data entries
3 entries across 3 versions & 1 rubygems