Skip to content

rahulthakur897/razorpay-integration-angular-6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 ---

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published