This service allows the user to buy the shopping cart contents through the PayPal payment processing service.
Note: The prices of all cart items should be expressed using the same currency, otherwise the payment will fail. This is a PayPal requirement.
Parameter
As parameter, this service expects to receive the website's PayPal merchant information. Example:
<merchant>
<id>billing@callersite.com</id> <!-- PayPal account id of seller -->
</merchant>
Result
If the payment was successfully completed, then this service returns the payment details. Example:
<payment>
<id>4588-9609-8697-5018</id>
<payer>
<email>john.smith@email.com</email>
<name>John Smith</name>
</payer>
<gross currency='USD'>86.60</gross> <!-- amount paid to seller -->
<fee currency='USD'>2.95</fee> <!-- amount paid to PayPal -->
<items>
<item>
<id>I003</id>
<title>Baseball hat</title>
<quantity>2</quantity>
<price currency='USD'>12.95</price>
<web>http://www.callersite.com/shop/I003</web>
</item>
<item>
<id>I098</id>
<title>Executive briefcase</title>
<quantity>1</quantity>
<price currency='USD'>34.75</price>
</item>
<item>
<id>I256</id>
<title>Red t-shirt</title>
<quantity>1</quantity>
<price currency='USD'>25.95</price>
</item>
</items>
</payment>
If the payment was not successful, then a fault is returned.
Call example
<qrm:goto href='/checked_out' xmlns:qrm='http://www.qworum.com/'>
<qrm:call href='http://www.qworum.com/ecommerce_pack/checkout_with_paypal'>
<merchant>
<id>billing@callersite.com</id>
</merchant>
</qrm:call>
</qrm:goto>