![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
python-bluefin is a Python API client for the Bluefin_ Payment System API. The only thing this client module does is serialize and pass the data on to the Bluefin API gateway, it performs little to no validation. Values are passed into an API function in dict form, and responses come back in a similar dict format.
.. note:: python-bluefin is not at all endorsed by Bluefin Payment Systems in any way. We have published this API module with the hope that it will be useful to someone else.
.. _Bluefin: http://www.bluefin.com/
python-bluefin has been in use in production for about a year with a high transaction volume. The directmode client in particular has seen lots of use.
That said, we only use a little sliver of what Bluefin supports (one-off credit card charges, namely). Given that python-bluefin is a very light wrapper, other usage cases should still work just fine, even if we (the maintainers) haven't used them yet.
To install::
pip install --upgrade bluefin
Here's a very bare-bones example of how to use the Direct Mode V3Client. We pass in the required key/values via a Python dict, and get a dict result. All of these values are documented in the Bluefin API documentation, so look there for help on just what is being passed in and coming back.
>>> from bluefin.directmode.clients import V3Client
>>> api = V3Client()
>>> result = api.send_request({
'pay_type': 'C',
'tran_type': 'A',
'account_id': 123456789012,
'amount': 1.0,
'card_number': 4444333322221111,
'card_expire': '1212',
'dynip_sec_code': 'SECURITY_CODE_HERE',
})
>>> print result
{
'avs_code': 'X', 'auth_msg': 'TEST APPROVED',
'status_code': 'T', 'ticket_code': 'XXXXXXXXXXXXXXX',
'auth_date': '2011-06-22 19:04:30', 'settle_currency': 'USD',
'auth_code': '999999', 'settle_amount': '1', 'cvv2_code': 'M',
'processor': 'TEST', 'trans_id': '123456789012'
}
tests/api_details.blank.py
to tests/api_details.py
test/api_details.py
to reflect your account number and security code.python-bluefin
dir, run nosetests
python-bluefin is licensed under the BSD License
_.
.. _BSD License: https://github.com/duointeractive/python-bluefin/blob/master/LICENSE
FAQs
A simple Bluefin Payment System API.
We found that bluefin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.