Skip to content

Commit

Permalink
Added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
danielflippance committed Jul 9, 2015
1 parent ebd36ea commit 30a3809
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# paypal-ap-parser
Parser to convert PayPal Adaptive Payments PayResponse into JAvascript object hierarchy
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]"
}
}
]
}
}

0 comments on commit 30a3809

Please sign in to comment.