Skip to content

full functional redsys inline angular component without dependencies

Notifications You must be signed in to change notification settings

davidpestana/redsys-inline-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

redsys-inline-angular

This component load a redsys credit card inSite using a messaged iframe.

For use Redsys test environment, 8080 port is mandatory in localhost because domain will be blocked by Redsys if using default port (4200),

The remote content loaded inside the iframe listen and post a messages to implement a functional protocol with our side, but redsys not send to us a "loaded" message, for this reason is needed a timeout for wait and init the protocol.

how to use

I dont make a module, or library because, if you want you can inspire, copy and paste component code for made your own implementations. This code is autonomous and independent to 3rd party code or libraries.

Constants

Inputs

  • orderId: string = Math.round(Math.random() * 10000).toString(); // your orderId
  • language:string = "es"; // iso
  • styleButton: string = ""; // string, support direct css styles in one line
  • styleBody: string = "";// string, support direct css styles in one line
  • styleBox: string = ""; // string, support direct css styles in one line
  • styleBoxText: string = ""; // string, support direct css styles in one line
  • buttonValue: string = "Pay now"; // text for button
  • fuc: string = "999008881"; // your merchant code 999008881 for test/dev environment
  • terminal: string = "001"; // your terminal id 001 by default

Outputs

About

full functional redsys inline angular component without dependencies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published