Adyen - Create HPP Skins Dynamically - adyen

is it possible to create Adyen HPP skins dynamically through an API request instead of using the dashboard?
https://docs.adyen.com/developers/payment-glossary/skins

Here is the reply I got from Ayden tech support
Michael Ngangom (Adyen Support)
Nov 8, 13:41 CET
Hi Terry,
Thanks for the mail.
It is not possible to create skin on the fly/ dynamically.
Please let me know if you have any remaining questions.
Thanks and best regards,
Michael
Adyen Technical Support

Related

Using MSAL with non-Microsoft Identity providers

I would like to know if MSAL can be used with Identity providers other than Microsoft products. If yes, how.
I checked the MSAL documentetion but it is not straightforward in this question.
What I would like to do is to authenticate to Google and OneLogin (and possibly others later) using MSAL, but I don't know how.
However, I successfully used MSAL with Azure AD.
MSAL seems to be a good library to use it generally with any IDPs.
According to the reply from the MSAL.NET GitHub discussion, MSAL.NET only supports Azure identity providers, so as of September of 2022, it would not work with third-party providers. The third-party support may be added later, but no timeline at this point.
PROVISO
I believe you're asking about MSAL.JS, as using MSAL.NET with a non-MS OpenID Connect provider is unnecessary, as Microsoft.AspNetCore.Identity provides sufficient support for social logins and vendors of custom OpenID Connect servers provide own extensions (see IdentityServer docs and OpenIdDict samples)
ANSWER
Yes, it's possible to use a non-MS OIDC provider with MSAL.JS since October 2020.
You'd have to specify extra auth properties: protocolMode: 'OIDC' and knownAuthorities: ["your-id-server.com"]. See the official docs on the parameters of #azure/msal-browser.
If you follow the official JavaScript examples then the config would look like:
auth: {
clientId: "YOUR-CLIENT-ID",
authority: "https://your-id-server.com",
knownAuthorities: ["https://your-id-server.com"],
redirectUri: "https://you-client-app.com",
protocolMode: "OIDC"
}
HISTORY
Till this PR was merged 16-Oct-2020, MSAL worked with MS end-points exclusively. So the #leastprivilege's answer of 2017 was correct back then.
Thankfully, issue requests 1555 and subsequently 2120 helped to change the tide.

In a forge web app, trying to get the unit's old short name from the new Revit 2021 units

I am developing a web application (using javascript) which uses forge viewer API.
In the application I display values of certain properties to the user.
I use Autodesk.Viewing.GuiViewer3D.getProperties to get the properties and from there find he specific property I want.
I believe I get an object of type PropertyResult (https://forge.autodesk.com/en/docs/viewer/v7/reference/globals/PropertyResult/) for this example will assign it to "prop".
Then I display the property value with the unit by (assuming I know it is a number and has units):
var res = prop.displayValue.toFixed(2) + " " + prop.units;
This worked as we wanted when used on models from revit 2019 or 2020.
Showing for example:
"102.79 m^2"
However in model from revit2021 it will show:
"335.59 autodesk.unit.unit:squareMeters-1.0.1"
I realize this happened because of the unit change in RevitAPI for 2021, however I have been trying to find a JS method to get the user friendly name from the new Autodesk unit type and wasn't able to find one.
Will appreciate if anyone can direct me to that method or offer an alternative solution.
Thank you,
This is a known problem that we've discovered recently. Unfortunately, there's no official workaround, and so if you need to compose measurements with units, for now you would have to map the Revit 2021 unit IDs to their display variants, e.g., mapping autodesk.unit.unit:squareMeters-1.0.1 to m^2.
Please stay tuned to the Model Derivative service changelog.

How to do shopping cart payment option in angular 8

I have created one shoppping cart application.I do not know how to redirect payment option after filled all details.If anyone know please help me to find the solution.
src/app/directives/billing.dir.ts:
send(){
if(this.billingForm.valid){
this.storage.set({
customerInfo:this.billingForm.value
})
this.router.navigate(['/checkout']);
}
}
Demo: https://stackblitz.com/edit/angular-selvam-ecommerce-task-cnstaj?file=src%2Fapp%2Fdirectives%2Fbilling.dir.ts
If you are using only angular for payment then you have to implement any payment_gateway (paytm or paypal etc) in angular then send that information to that gateway.
OR
If you are using backed like Node.js then you can send that data to the server and implement that gateway on server-side
Then after sending that data to the gateway, it will return you the URL. then you have to redirect on that URL and made your payment.
You can ask for any help If you need.
You have to choose payment which you want to start with it.
After they will provide you integration kit for supported language mostly all payment gateway support JavaScript SDK.
Then you have to convert or use as it library inside angular project like importing library.
Before start payment integration get clarity on below article :
https://www.quora.com/How-do-payment-gateways-work-technically
https://www.quora.com/What-is-the-process-of-transaction-in-payment-gateway
https://www.quora.com/What-is-the-procedure-to-get-a-payment-gateway
https://www.quora.com/What-is-the-procedure-to-get-a-payment-gateway-for-my-website-in-India
They will provide Kit like this :
https://razorpay.com/integrations/
Demo Paytm Account you can follow this :
https://developer.paytm.com/docs/v1/payment-gateway/ and for going live
sign up here : https://business.paytm.com/payment-gateway

Integrating Apple Pay JS Into A Website

I'm looking into integrating Apple Pay into a website using the new Apple Pay JS SDK. The documentation is currently pretty minimal, concerning just the API declarations and how to instantiate a new ApplePaySession object.
Is there any example code available yet, or has anyone actually implemented this themselves yet, showing the typical API integration flow for a web application?
The only examples I've been able to find anything for all appear to be for third-party payment providers' own SDK integrations of Apple Pay.
I've published end-to-end ApplePayJS example code on github here
https://github.com/norfolkmustard/ApplePayJS
It uses PHP for the server-side part, needed for the initial vendor validation to begin the transaction. The rest is in javascript.
ApplePayJS != cash in the bank, just a means of getting a tokenised credit card from a customer. You hand that card number off to a third-party payment processor like stripe.com, braintreepayments.com, authorize.net
Cheers
The stable release will be available this fall probably.
First thing you want to do is to ensure that API is available in your browser:
if(ApplePaySession)
ApplePaySession.canMakePayments()
Then the transaction itself:
var request = {
countryCode: 'US',
currencyCode: 'USD',
supportedNetworks: ['visa', 'masterCard'],
merchantCapabilities: ['supports3DS'],
total: { label: 'Your Label', amount: '10.00' },
}
var session = new ApplePaySession(1, request);
This is from official website how to get it started: https://developer.apple.com/reference/applepayjs/applepaysession
After you have the session, you can control it:
And you can listen to events, and change your flow based on it:
I'm working on the integration between Apple Pay JS and Stripe API right now, so I'll release draft version to GitHub this summer.
The integration I've been working on has now finally been released, and there's a blog post I've written to go along with it as well as a GitHub project with an example integration using ASP.NET Core.
I hope others doing an Apple Pay JS integration themselves find it useful.

How to do Chart on Windows Phone Universal App

I'm new Windows Phone Universal App, I need to implement bar/pie chart.
Tried many dll, Metro UI, WinRtXamlToolKit and WinRtXamlToolKit.Controls.DataVisualization
These dll are not working.
Give me good idea to do this on Windows Phone Universal App. How to do chart programmatically.
Thanks
I believe the Telerik has some Chart libraries that cost money ( can't link though as stackoverflow only permits me to post 2 links ( less than 10 rep) ). I have not used it and it is in Beta version at the moment. Google "Rad Chart windows universal apps" and you can read about it.
When I have needed charts for universal apps i have used the Google Chart Tools. You can use https://developers.google.com/chart/image/ even though Google is not developing on it anymore. It is is freakingly easy to use if you do not want to spend time drawing your own Charts. With the API you can request a chart just through a http request. You can setup almost everything and it's really easy to use thanks to the well documented API.
Here is an example of a bar chart i made using the API.
http://chart.googleapis.com/chart?chtt=Karakterfordeling&cht=bvg&chof=png&chs=300x300&chxt=x,y&chco=0076A3&chf=bg,s,65432100&hxr=0,0,50&chxl=0:|2|4|7|10|12&chxr=1,0,20&chbh=40,0,10&chd=t:2,60,70,10,90
All the arguments are passed through the http request and you can set your Chart up using the Live Chart Playground:
These are the arguments for the http request posted above. You can use the Live Chart Playground to set up parameters like below.
chtt=Karakterfordeling
cht=bvg
chof=png
chs=300x300
chxt=x,y
chco=0076A3
chf=bg,s,65432100
hxr=0,0,50
chxl=0:
2
4
7
10
12
chxr=1,0,20
chbh=40,0,10
chd=t:2,60,70,10,90
In code you set the http string as your ImageSource. You can manipulate the http string in your code and adapt the chart parameters/data if needed. I would recommend using a Converter that you bind to from you XAML. Pass your data to the converter and let it return a ImageSource with the http request. If you are new to Converters you can probably find a few posts about it here on stackoverflow.
Don't use DLLs grab the files into your project.
Add WinRTXamlToolkit.Controls.DataVisualization.csproj to your solution and reference it in the main project and add this to your page.
xmlns:charting="using:WinRTXamlToolkit.Controls.DataVisualization.Charting"
xmlns:datavis="using:WinRTXamlToolkit.Controls.DataVisualization"
Look at the samples project http://winrtxamltoolkit.codeplex.com
Unfortunately, winrtxamltoolkit is only for WinRT; VS 2013 doesn't allow adding of project references of that kind to WinPhone projects.