[...] Das größte Problem besteht momentan darin, das weltweit nur sieben Transaktionen pro Tag möglich sind, ein Wert der Anfang März erreicht wurde. (Quelle: heise.de)[...]
<? php / * MIT - Lizenz - PHP 5, PHP 7 * / $ data = Array ( 'api_private_key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' , 'Menge' => '1,25' , 'Währung' => 'PLN' , 'url' => urlencode ( 'https://store.com?accept=md5' ), 'url_fail' => urlencode ( 'https://store.com?fail' ));$ json_data = file_get_contents ( "https://kryptopay.pl/api/create/?" . http_build_query ( $ data ));$ address = "https://kryptopay.pl/api/payments/de/?transaction=" . json_decode ( $ json_data ) -> Transaktion ;Header ( "Location:" . $ address );?>
#! MIT License - PYTHON 3 import json import urllib.parse import urllib.request def getTransactionAndForward (url): Daten = Json . Lasten ((urllib . Anfrage . urlopen (url) . read ()) . dekodieren ()) return "https://kryptopay.pl/api/payments/en/?transaction=" + data [ "Transaktion" ] def makeUrlPayment (): params = ({ 'api_private_key' : 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' , 'Höhe' : 1,25 , 'Währung' : 'PLN' , 'url' : urllib . parsen . quote_plus ( 'https://store.com?accept=md5' ) , 'url_fail' : urllib . parsen . quote_plus ( 'https://store.com?fail' )}) return "https://kryptopay.pl/api/create/?" + urllib .urlencode (params)print (getTransactionAndForward (makeUrlPayment ())))
erfordern "uri" erfordern "json" erfordern "net / http" DATA_LINK = "https://kryptopay.pl/api/payments/de/?transaction=" PAY_LINK = "https://kryptopay.pl/api/create/ ? def pay url uri = URI (url) data = JSON . parsen ( Net : : HTTP . get (uri)) setzt DATA_LINK + Daten [ 'Transaktion' ] Ende def make_url params = { 'api_private_key' : 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' , 'Menge' : 1 . 25 , 'Währung' : 'PLN' , 'URL' : 'https://store.com?accept=md5' , 'url_fail'"https://store.com?fail" } PAY_LINK + URI . encode_www_form (params) end url = make_urlURL bezahlen
Begonnen von modifnick am Bastelecke
Begonnen von Chopper-Fahrer am Bastelecke
Begonnen von andreaswien am Off Topic
Begonnen von dahu am Off Topic