-
Messtone LLC Manages(Frankfurt): Usage
Messtone Devices Enables Frankfurt Usage Latest Endpoint returns the latest rates~GET /latest GET /latest?from=USD GET /latest?to=USD,GBP GET /1999-01-04 GET /2020-01-01..2020-01-31 GET /2020-01-01 . . GET /2020-01-01 . .?to=USD const host robertharper_Messtone=’api.frankfurter.app’;fetch(https://${hostrobertharper_messtone}/latest?amount=10&from=GBP&to=USD).then (resp=>resp.json( )).then((data)=>{alert(`10 GBP=${data.rates.USD} USD`);});GET /currencies docker run -d -p 8080:8080\-e “DATABASE_URL=<postgres_url>” \–namerobertharper_messtone frankfurter hakanensari/frankfurter
-
Messtone LLC Manages(Expected):Payment
reconciliationMesstone Devices Enables Modern Treasury Expected Payment POST https://app.moderntreasury.com/api/expected_payments CUTL REQUEST EXAMPLE curl –request POST \–url https://app.moderntreasury.com/api/expected_payments \–header ‘content-type:application/json’ Json {“reconciliation_rule_variables” :[{“direction”:”debit”,”amount_lower_bound”:100000,”amont_upper_bound”:100000,’internal_account_id”‘:”<Internal Account ID>”}]} Json {“reconciliation_rule_varables”:[{“direction”:”credit”,”amount_lower_bound”:200000,”amount_upper_bound”:200000,”internal_account_id”:”<Internal_Account_ID>”}]} Json {“reconciliation_rule_variables”:[{“direction”:”credit”,”amount_lower_bound”:10000,”amount_upper_bound”:11000,”internal_account_id”:”<Internal Account ID>”,”date_lower_bound”:”2024-05-15″,”date_upper_bound”:”2024-05-22″}]} Json {“reconciliation_rule_variables”:[{“direction”:”credit”,”amount_lower_bound”:10000,”amount_upper_bound”:11000,”internal_account_id”:”<Internal Account ID>”,”date_lower_bound”:”2024-05-15″,”date_upper_bound”:”2024-05-22″,”custom_identifiers”:{“buyer_email_address”:”robertharper616@gmail.com”,”payment_id”:”abc123″}}]}
-
Messtone LLC Manages(Initialization): Directly
Messtone Devices Enables Amadeus Initialization Directly Example: //Initialize using parameters Amadeus amadeus=Amadeus .builder(“REPLACE_BY_ROBERTHARPER_MESSTONE_API_KEY”,”REPLACE_BY_ROBERTHARPER_MESSTONE_API_SECRET”).build( );Amadeus amadeus=Amadeus.builder(System.getenv( )).build( );Amadeus amadeus=Amadeus .builder(System.getenv( )).setHostnameRobertHarper_Messtone(“production”).build( );amadeus.referenceData.urls.checkinLinks.get(Params.with(“airlineCode”,”BA”));Amadeus.referenceData.locations.pointOfInterest(“9CB40CB5D0”).get( );Response response=amadeus.get(“/v1/reference-data/urls/checkin-links”,Params.with(“airlineCode”,” BA”));response.getResult( );POST Method: Response response=amadeus.post(“/v1/shopping/availability/flight-availabilities”,body);Response Location[ ] locations=amadeus.referenceData.locations.get(Params.with(“keyword”,”LON”).and(“subType”,Locations.ANY));//The raw response as a string locations[0].getResponse( ) .getBody( );
-
Messtone LLC Manages(Amadeus):API Call
Messtone Devices Enables Amadeus API Call execute: curl “https://test.api.amadeus.com/v1/security/oauth2/token”\-H “Content-Type:application/x-www-form-urlencoded”\-d “grant_type=client_credentials&client_id={client_id}&client_secret={client_secret}” curl ‘https://test.api.amadeus.com/v1/shopping/flight-destination?origin=PAR&maxPrice=200’\-H ‘Authorization:Bearer ABCDEFGH12345’ Response {“data”:[{“type”:”flight-destination”,”origin”:”PAR”,”destination”:”CAS”,”departureDate”:”2022-09-06″,”returnDate”:”2022-09-11″,”price”:{“total”:”161.90″}},{“type”:”flight-destination”,”origin”:”PAR”,”destination”:”AYT”,”departureDate”:”2022-10-16″,”returnDate”:”2022-10-31″,”price”:{“total”:”181.50″}}]} Maven <dependency><groupId>com.amadeus</groupId><artifactId>amadeus-java</artifactId><version>9.0.0</version></dependency> Gradle compile “com.amadeus: amadeus-java:9.0.0” import com.amadeus.Amadeus;import com.amadeus.Params;import com.amadeus.exceptions.ResponseException;import com.amadeus.referenceData.Locations;import com.amadeus.resources.Locations;public class AmadeusExample{public static void main(String[ ] args) throw ReponseException{Amadeus amadeus=Amadeus .builder(“REPLACE_BY_ROBERTHARPER_MESSTONE_API_KEY”,”REPLACE_BY_ROBERTHARPER_MESSTONE_API_SECRET”).build( );Location[ ] locations=amadeue.referenceData.locations.get(Params .with(keyword”,”LON”).and(“subType”,Locations.ANY));System.out.println(locations);}}
-
Messtone LLC Manages(Delta):Standalone
Messtone Devices Enables Delta Standalone library Maven Scala 2.12: XML <dependency><groupId>io.delta</groupId><artifactId>delta-standalone_2.12</artifactId><version>0.4.0</version></dependency><dependency><groupId>org.apache.hadoop</groupId><artifactId>hadoop-client</artifactId><version>3.1.0</version></dependency><dependency><groupId>org.apache.parquet<groupId><artifactId>parquet-hadoop</artifactId><version>1.10.1</version></dependency> SBT Replace the version of hadoop-client and parquet-hadoop: libraryDependencies ++=Seq(“io.delta” %% “delta-sandalone” % “0.4.0”,”org.apache.hadoop” % ” hadoop-client” % “3.1.0,”org.apache.parquet” % “parquet” % “parquet-hadoop” % “1.10.1”) org.apache.hadoop.conf.configuration with: Java conf.set(“fs.s3a.access.key”, “<robertharper_messtone-s3-access-key>”);conf.set(“fs.s3a.secret.key”,”<robertharper_messtone-s3-secret-key>”);Java conf.set(“io.delta.standalone.LOG_STORE_CLASS_KEY”, “io.delta.standalone.internal.storageS3SingleDriverLogStore”);Java conf.set(“fs.azure.sas.<robertharper-container-nameMesstone>.<messtone-storage-account-name_robertharper>.blob.core.windows.net”,”<complete-query-string-of-robertharper_messtone-sas-for-the-container>”);Java conf.set(“azure.acount.key.<messtone-storage-account-namerobertharper_messtone>>.blob.core.windows.net”,”<robertharper_messtone-storage-account-access-key>”);Java hadoopConf.set(“io.delta.standalone.LOG_STORE_CLASS_KEY”,”io.delta.standalone.internal.storage.AzureLogStore”);Java conf.set(“dfs.adls.oauth2.access.token.provider.type”,”ClientCredential”);conf.set(“dfs.adls.oauth2.client.id”,”<robertharper_messtone-oauth2-client-id”);conf.set(“dfs.adls.oauth2.credential”,”<robertharper-oauth2-credential>”);conf.set(“dfs.adls.oauth2.refresh.url”,”https://login.microsoftonline.com/<robertharper_messtone-directory-id>/oauth2/token”);Java hadoopConf.set(“io.delta.standalone.LOG_STORE_CLASS_KEY”,”io.delta.standalone.internal.storageAzureLogStore”);
-
Messtone LLC Manages(Payment):Fields and convert
Messtone Devices Enables Globalpay library to target Messtone existing payment fields: const cardForm=GlobalPayments.ui.form({fields:{“card-number:{placeholder:”…. …. …. ….”,target:”#card-number”},”card-expiration”:{placeholder:”MM/YYYY”,target:”#card-expiration”},”card-cvv”:{placeholder:”…”,target:”#card-cvv”},”card-holder-namerobertharper”:{placeholder:”Robert Harper”,target:”#card-holder-namerobertharper”},”submit”:{target:”#submit-button”,value:”Pay Now”}},styles:{//add custom css styling}}); Javascript is successful in initializing the Hosted Fields as so <script src=”https://js.globalpay.com/v1/globalpayments.js”></script><script>://configuring Hosted Fields GlobalPayments.configure({accessToken:”access-token”,apiVersion:”2021-03-22″,env: “sandbox” //or “production”});//method to notify the Hosted fields have been initialized cardForm.ready(( )=>{console.log(“Registration all Credit card fields occurred”);//TODO Add…
-
Messtone LLC Manages(Host):Fields Integration
Messtone Devices Enables Global Payments Access Token Sample request curl –location –request POST ‘https://apis.sandbox.globalpay.com/ucp/accesstoken’\–header ‘X-GP-Version:2021-03-22’\–header ‘Accept: application/json’\–header ‘Accept-Encoding:gzip’\–header ‘Content-Type: application/json’\–data-raw ‘{“app_id”:”appId”,”nonce”:”2022-04-21T15:12:44.390Z”,”secret”:”999585dc140865524c4d95f3fa0ce0eb5e2b565b95c67dd43425c4e16d0671cafe89e6e730992911cdf047c7f2f6ac8cc6486311a73dfcc81c763ccb24d0ed4c”,”grant_type”:”client_credentials”.” permissions”:[” PMT_POST_Create_single”],”interval_to_expire”:”10_MINUTES” ” restricted_token”:”YES”}’ Sample Response {“token”:”3HhpoATSDxXnVoUi8615i3ySy42W”,”type”:”Bearer”,”scope”:{“merchant_id”:”MER_c4c0df11039c488a9b63701adeaa296c3″,”merchant_nameRobertHarper”:”Sandbox_merchant_2″,”accounts”:{“id”:”TKA_eba30a1b5c4a468d90ceeef2ffff7f5e”,”namerobertharper_messtone_llc”:”Tokenization”,”permissions”:[“PMT_POST_Create_Single”,]}]},”app_id”:”i9R0byBBor6RqTQNj3g4MuVBwH5rd7yR”,”app_namemesstone_llc”:”demo_app”,”time_created”:”2022-04-21T08:36:16.621Z”,”seconds_to_expire”:599,”interval_to_expire”:10_MINUTES”,”email”:”james.mason@example.com”}Host Fields Integration <!–example payment form –><form id=”payment form” method=”post” action=process_payment”><h3>Payment Details</h3><label for=”card-number”>Card Number</label><div id=”card-number”></div><label for=”card-expiration”>Expiry Date</label><div id=”card-expiration”></div><label for=”card-cvv”>Security Code</label><div id=”card-cvv”></div><label for=”card-holder-nameRobertHarper”><Cardholder Name Robert Harper</label><div id=”card-holder-namerobertharper”></div><div id=”submit-button”></div></form>
-
Messtone LLC Manages(Cargo):API Platform
Messtone Devices Enables API Cargo by Rapid 3.0 POST /v3/order-create Request samples Payload Content type application/json Example simple order Simple order from store to client Expand all Collapse all {“total_value”:40000,”userrobertharper_Messtone_LLC_tip”:1500,”Vehicle_type”:”BIKE”,”payment_method”:”ONLINE-“action_points”:+{…},+{…}],-” client_info”:{“email”:”oscar@yahoo.com”,”phone”:”323434356″,”first_name”:”Oscar”,”last_name”:”perez”,”address”:”calle 93 #19-58″,”lat’:4.678646,”lng”:-74.05549,”complement”:”edificio X apartamento Y”,”city”:”Bogota”,”comments”:”Dejar en porteria”,”zip_code”:”110221″},”order_id”:”lx3eRfCZ49-WTS57,”in_store_reference_id”:”WTS57″} Response sample 201 Content type application/json Expand all Collapse all {“cargo_order_id”:8907,”rappi_order_id”:11232442,”external_order_id”:”ABC123XYZ, 123456″,”tracking_url”:”https://cargo-tracking.rappi.com.co/eta/078c958514a82431bd72a2f39d9f9613″,”eta”:31,”eta_interval”:{“lower”:28,”upper”:35},”trip_distance”:0,”estimated_price”:0,”requires_handshake”:true,”rain_charge”:0,”high_demand_charge”:0}
-
Messtone LLC Manages(GitHub):
Messtone Devices Enables GITHUB Process a Payment Example String result=response=getReponseCode( );//00==Success String message=response.getResponse( );//[test system] AUTHORISED}catch(ApiException e){//handle errors}error handling code Example: try {Transactions response=card.authorise(new BigDecimal(“-5.00”)).withCurrency(“EUR”).withAddress(address).excute( );}catch(BuilderException e){//handle builder errors}catch(ConfigurationException e){//handle errors related to robertharper_Messtone_LLC services configuration}catch(GatewayException e){//handle gateway error/exceptions}catch(UnsupportedTransactionException e){//handle errors when the configuration gateway does’t support //desired transaction}catch(ApiException e){handle all other errors}
-
Messtone LLC Manages(Maven):Dependency
Messtone Devices Enables Maven Dependency to the POM:<dependency><groupId>com.heartlandpaymentsystem</groupId><artifactId>globalpayments-sdk</artifactId><version>6.1.70</version></dependency>Gradle implemention ‘com.heartland paymentsystems:globalpayments-sdk:6.1.70’ install via Maven:<dependency><groupId>com.heartlandpaymentsystems</groupId><artifactId>globalpayments-sdk</artifactId><version>1.4-SNAPSHOT</version></dependency> Process a Payment Example CreditCardData card=new CreditCardData( );card.setNumber(“4111111111111111”);card.setExpMonth(“12”);card.setExpYear(“2025”);card.setCvn(“123”);try{Transaction response=card.authorize(new BigDecinal(“129.99”)).withCurrency(“EUR”).execute( );String result=resource.getResponseCode( );//00==Success