Skip to content

Parser to convert PayPal Adaptive Payments PayResponse into JAvascript object hierarchy

Notifications You must be signed in to change notification settings

danielflippance/paypal-ap-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

paypal-ap-parser

Parser to convert PayPal Adaptive Payments PayResponse into javascript object hierarchy.

EG: Converts

paymentInfoList.paymentInfo(0).receiver.amount=12.00
	&paymentInfoList.paymentInfo(0).receiver.paymentType=SERVICE
	&paymentInfoList.paymentInfo(1).receiver.email=me%40website.com

To

{
    paymentInfoList: {
        PaymentInfo: [
          {
             receiver: {
                 amount: 12.0,
                 paymentType: "SERVICE"
             }
          },
          {
            receiver: {
              email: "[email protected]"
            }
          }
        ] 
    }
}

About

Parser to convert PayPal Adaptive Payments PayResponse into JAvascript object hierarchy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published