Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 762 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 762 Bytes

angular6

I have mention only steps related to razorpay-integration.

#Steps to integrate Razorpay Integration with angular 6 and above

  1. Add script tag in the bottom of html file, present in the src folder i.e.
<script src="https://checkout.razorpay.com/v1/checkout.js"></script>
  1. Add service file to access DOM window object via angular scope. Please refer "windowRef.service.ts"

  2. Import "windowRef.service.ts" in your component where you want to use razorpay checkout like import { WindowRef } from 'windowRef.service';

  3. Initialize in construtor method of that component like constructor(private winRef: WindowRef)

  4. Refer payWithRazor() for how to pass data to razorpay Api from file "checkout.component.ts".

--- Thanks ---