Using the ETN Instant Payment API


#66

If anyone is interested in a C# DotNet core API, I can look into this.


#67

So if I have this correct this is an API which will allow instant payments but no IPN yet meaning you couldn’t really use it for automation where a customer buys a product and it is delivered when confirmed automatically?

Also I notice there are no custom parameters like for example a customers username so the sale can be attributed to their account.
There is a way around that however it relies on the ETN user having the same registered email as the one used onsite. Can you not just add a custom variable like all the other APIs like Custom1 for example?


#68

The two things you are talking about will need some code from your side, for example, you can trigger some code after the payment is confirmed by the API, same goes for the username thing, you can save the payment ID and link it to an user


#69

Actually I have been able to do something similar with Zapier—if I am understanding you correctly. You can set confirmation (API hook) as trigger and tie that to an action, even with conditionals. E.g. I can use payment confirmation as the trigger and then the action is to enrol the person on the course they have just paid for… Bit of a work around but certainly possible…


#70

The PHP library has been updated to v0.1.1 (release notes below).

Please update your integrations using the beta branch. If using composer, remember to use the dev-beta version; for example composer update electroneum/vendor-php dev-beta.

Please see the repo for full details: github.com/electroneum/vendor-php.

v0.1.1

This is the v0.1.1 point release of the Electroneum vendor PHP library. This release presents minor bug fixes.

Fixes

Payload order of payment poll
Use cUrl in currencyToEtn(), if available, over file_get_contents()

General

README updated with remote API updates

github.com/electroneum/vendor-php/pull/2

Egg


#71

Brill. Thank you for that!! :+1::+1:


#72

Hi! We have built a fully reusable web component, check it out on NPM https://www.npmjs.com/package/@palmabit/etn-vendor-payment.
Here an example of usage: https://codepen.io/ffrancesco/pen/yRaEam


#73

But “Czech Koruna” is right…


#74

Yea, but “Czech Repucalic Koruna” was not. Now it is good, has been fixed.


#75

It is working for shopify ?


#76

The supported list of currencies has been updated to include:

  • ARS Argentine peso
  • BDT Bangladeshi taka
  • COP Colombian peso
  • EGP Egyptian pound
  • GHS Ghanaian cedi
  • NGN Nigeria Naira
  • RON Romanian leu
  • UAH Ukrainian hryvnia
  • VES Venezulan Bolívar Soberano
  • VND Vietnam đồng

Please note that we do not add currencies or languages by request.

Egg


#77

Wow, yeepee, awesome, spectacular, the bomb, I can’t stop expressing how happy I am.


#78

Thanks for adding these ones. But if you want mass adoption worldwide and maybe ambassador in my country. It’s necessary to add all existing languages… Our language use 10 000 000 people and we don’t know why you don’t use our help with translate or didn’t pay maybe 500 pounds for official translation…
From the beginning you have 20 languages. It’s a lot of but we like I say need have more… :slight_smile:


#79

The API webhook payload has been updated to include an event type; this is to differentiate between a payment and a refund.

Refunds (full or partial) against payments are now available on the new Vendor Payments page of your account.

Egg


#80

Awesome update!! Guys get in here!


#81

Wow! That’s very very very… neat!! :+1::+1::pray:


#82

Why can’t I enable beta access/api in my account? It says sorry high volume of traffic everytime?


#83

It’s Philippine Peso not Piso :slight_smile:


#84

“Krona” with and “a” in the the end. “e” is for Denmark and Norway. Us swedes say “Krona”


#85

Hi,

I checked and compare the https://supply.electroneum.com/app-value-v2.json and mobile app currencies.
It doesn’t reflect the same price.

Is this suppose to be?