Examples
Platform | Verified | Complete | Description |
---|---|---|---|
JSON | 30/30 | 30/30 | JSON basic example payloads. Updated 2024. |
Python | 26/30 | 27/30 | Python3 code. Updated 2024. |
Node.JS | 26/30 | 27/30 | Node.JS code. Updated 2024. |
Bun | 26/30 | 27/30 | Bun code. Updated 2024. |
Deno | 26/30 | 27/30 | Deno code. Updated 2024. |
PHP Legacy | 26/30 | 27/30 | Old PHP code, refreshed and moved from our old API documentation. This code is based on PHP5. |
Perl | 0/30 | 27/30 | Hashes in Perl doesn't keep the same order for properties from time to time which makes hashing a pain. The available code relies on hacks with Tie::IxHash and Monkey::Patch to work. |
PHP | 0/30 | 30/30 | New PHP code. Updated 2024 to a more modern style. |
C# | 0/30 | 11/30 | C# code, moved from our old API documentation. |
Go | 0/30 | 0/30 | Go has some issues with the strict typing. The solution will probably be based on interface and that might not be a favorite amongst hard core purists. |
Java | 0/30 | 0/30 | Java is not a prioritized language and will ba added at a later stage. |
Rust | 0/30 | 0/30 | Rust is coming as soon as we've managed to learn best practices. |
Please note that if the code is not verified, it might not work as expected. The code is updated on a regular basis and we are working on getting all examples verified where applicable.
All old examples has been undergoing verification and has been updated. The old Billmate class has been updated to work better with PHP 8.x and changed name to PaymentAPI.
The old PHP examples has been updated to work with PHP8.
The Python code is based on a new package.
The Node.JS code is based on a new package.
The old C# code will not be updated at this time.
The Perl code has a few hacks using Tie::IxHash to keep the order of the properties in the JSON. It also uses Monkey::Patch to keep JSON::PP handling hashes correctly. The library itself is a quick and dirty solution to get the code working. It is maybe not the best example of how to write Perl code.
Node.JS vs Deno vs Bun
Even though Node.JS is the most popular platform for JavaScript, it has some issues with the strict typing. The solution will probably be based on interface and that might not be a favorite amongst hard core purists.
The code for Node.JS, Deno and Bun is very similar but have some minor differences.
Both Bun and Deno are new platforms and are not yet widely used. We will add examples for these platforms when we have the time and resources to do so.