#Steps to integrate Razorpay Integration with angular 6 and above
- Add script tag in the bottom of html file, present in the src folder i.e.
-
Add service file to access DOM window object via angular scope. Please refer "windowRef.service.ts"
-
Import "windowRef.service.ts" in your component where you want to use razorpay checkout like import { WindowRef } from 'windowRef.service';
-
Initialize in construtor method of that component like constructor(private winRef: WindowRef)
-
Refer payWithRazor() for how to pass data to razorpay Api from file "checkout.component.ts".
--- Thanks ---