Saturday, 19 December 2020

Integrating Payment Gateway in Pega

     Integrating Payment Gateway in Pega


Creation of Instamojo Account

1. Open the url provided here Instamojo
2. Sign up using Google
3. Enter your mobile number to get otp and click verify.
4. Click payments on next tab
5. Provide Username
6. Click blue button to go to subsequent pages and go to
next pages and enter required business details and
pan card details.
7. Just create and add bank account details.
8. Open Pega
9. Create Case Type Online gift Store.
10. Create Stage Name Index Page.
11. Add Step Name Index Page. and  Payment Page


12. Create Data Type Gift Details List.



13. then Configure Local Data Source and Save it.


14. Create Integer Property named as AmountToPay in Data model of Casetype.
14. Create Text property named as URL in Data model.
15. Go to App explorer --> data model --> property --> Right click on Url and click Define Expression.



16. Now in Expression value use your Link that obtained in Instamojo  (url?purpose=pega&amount=+ .AmountToPay)
.
Example Image



14. Create a GiftDetails section in App Explorer in GoGoCM-Practice-Data-GiftDetailsList


15.Now Configure section by Dragging all properties into it.



16. Add a button Buy and configure event Action Model
17. Configure Event as click and Action as Data transform named totalpriceDT and Finish Assignment --> Transition --> Move Forward.


18. create totalpriceDT and configure shown in picture.





19. Now Create Index page Section in GoGoCM-Practice-Work-OnlineGiftStore and open it.



20. You have create propert giftsData in casetype and refer that property to giftDetailsList..


21. Now open indexpage section and Use Repeating dynamic layout as giiftDetailsList and drag and drop the section that created in data class to inside Repeating Layout.


 

14. Open the section paymentpage in GoGoCM-Practice-Work-OnlineGiftStore .
15. Create Image / Button as Pay Now and configure Event action model . Event is click and action is open url in new Window and configure as shown in image.



20. Click save
21. Run the case and check.

Note : I have attached the Demo video of Integrating Payment Gateway in Pega below



Written and Published by : 


                                                VIGNESH P
                                                PEGA CERTIFIED SYSTEM ARCHITECT
                                                RAJALAKSHMI ENGINEERING COLLEGE
 


Demo Video :






 Follow me on :


            
            Instagram : https://www.instagram.com/vignesh_pvk/


            website :  http://techelectro.rf.gd/

            Github :  https://github.com/vigneshpvk/



You can also contribute to us by Sending a Mail to Me 

mail id : 1999vigneshpvk@gmail.com

3 comments: