Git Product home page Git Product logo

coinbase-commerce-python's People

Contributors

guacamoli avatar maksim-s avatar nkoshell avatar oa-coinbase avatar samiragadri-34 avatar sds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coinbase-commerce-python's Issues

AttributeError during Maintenance

AttributeError at /api/payments/create_package_charge/3/ 'NoneType' object has no attribute 'get'

File "/coinbase_commerce/api_resources/base/create_api_resource.py" in create
  12.         response = cls._api_client.post(cls.RESOURCE_PATH, data=params)

File "/coinbase_commerce/client.py" in post
  109.         return self._request('post', *args, **kwargs)

File "/coinbase_commerce/client.py" in _request
  79.             proceeded_response = self._proceed_response(response)

File "/coinbase_commerce/client.py" in _proceed_response
  84.             raise build_api_error(response)

File "/coinbase_commerce/error.py" in build_api_error
  109.     error_id = error.get('type', '')

The response:

{"type":"maintenance","message":"Coinbase Commerce is under maintenance. Follow @commercecb on Twitter for more information."}'

Any way to get back top X events?

Trying to build up a script for donations and it seems that the API keeps giving me back a list of every event. Is it possible to give me back only events from x time? As I would prefer not to need to list every one and sift through a years worth of history.

Also, I could just be missing what's already there?

Ask: Checkout and Webhook

Maybe this is a stupid question, but I just want to confirm because it is not mentioned in the API docs and there is no sandbox env.

My Question is:
Suppose my users bought my products via Checkout button with email attached.
screen shot 2018-08-16 at 21 58 38

If the payment is confirmed, is it my configured webhook that listen to charge:confirmed event called with the metadata.email ?

Thanks

Python 3 encoding utf-8

Error:
File "/usr/local/lib/python3.6/dist-packages/coinbase_commerce/webhook.py", line 34, in _compute_signature mac = hmac.new(secret.encode('utf-8'), โ”‚
AttributeError: 'bool' object has no attribute 'encode'

CreateWebhook.construct_event signature error

Hello:

event = Webhook.construct_event( json_data, signature, provider.coinbase_shared_secret)

json_data it comes form request.httprequest.data.decode('utf-8') but always returns signature is not correct.

I have checked the webhook key and everything is correct.

What is the exact format fo the payload?

Thank

buy, sell usdc

payment_method = USDC ???

sell = client.sell('2bbf394c-193b-5b2a-9155-3b4732659ede',
                   amount="all",
                   currency="BTC",
                   payment_method="83562370-3e5c-51db-87da-752af5ab9559")

dynamically create a charge and set its icon

I've got everything working except one feature: setting the icon of a charge created directly via the API.

When I create a charge via a Checkout it gets the checkout's image. But, in this case, we are using additional custom metadata fields beyond the email and name supported by a Checkout, so are creating the Charge directly.

I think the API is missing the ability to directly set the image. Or is it there but just not documented?

Event Attributes

Where can I view all of the attributes of the Event object returned by Webhook.construct_event?

For example, when I do:

order = Webhook.construct_event(
            order_data, request_sig, secrets_config["webhook_secret"]
)

I would like to print the checkout name or merchant's request info.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.