I'm trying to use the API for X-Payments to recharge and to create an order in the process.
So far, I have gotten the recharge to work, and I get a bare order created. It has the customer info and lists in the customer portal, but I cannot get any line items to show there. The total, however, is correct.
But I'd like to have more info in there in case a customer logs in and wants to verify their charge history.
I'm using:
Code:
<items type="cell">
<sku>misc-charge</sku>
<name>Miscellaneous Charge</name>
<price>75.33</price>
<quantity>1</quantity>
</items>
I have a product in my X-Cart with the SKU of 'misc-charge' and no set price.
I also can't get the tax to breakout.
There isn't a lot of documentation about the API so I can't really figure out what more to try.
I did finally figure out that the mechanism to tell the cart about the new order (since you are communicating with X-Payments and not X-Cart) is this line:
Code:
<callbackUrl>https://www.example.com/xcart/payment/cc_xpc.php</callbackUrl>
That doesn't exactly seem like a "callback" URL to me, but that's the way X-Payments pings your cart with the info about the new order.