coinbase-commerce-ruby icon indicating copy to clipboard operation
coinbase-commerce-ruby copied to clipboard

New status SIGNED for charge

Open ivanov17andrey opened this issue 1 year ago • 0 comments

A few days ago appeared new status SIGNED for charges. Also, it's not described here. How to interpret this status? Code used

client = CoinbaseCommerce::Client.new(api_key: COINBASE_API_KEY)
client.charge.retrieve(charge_id)[:timeline].last[:status]

Also, it started to return an error on charge creation if local_price.currency = 'usd'. Before it worked with lower case, now it accepts only upper case 'USD'.

client.charge.create(
    local_price: {
    amount: payment.calculate_amount,
    currency: payment.currency.upcase
    },
    ...
)

coinbase_commerce (0.8.7) rails (6.1.3.1) ruby 2.7.7p221

ivanov17andrey avatar Oct 03 '23 07:10 ivanov17andrey