Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.0
-
None
Description
1. When to create opensocial.ResponseItem in extras/opensocial-payment/jsoncontainer.js, original code uses opensocial.Payment.ResponseCode values instead of opensocial.ResponseItem.Error values. It is not a good manner.
2. Replaced some redundant codes
Index: jsoncontainer.js
===================================================================
— jsoncontainer.js (rev 1005715)
+++ jsoncontainer.js (working copy)
@@ -37,8 +37,8 @@
JsonRpcContainer.prototype.requestPayment = function(payment, opt_callback) {
if (!payment) {
if (opt_callback)
return;
@@ -64,16 +64,14 @@
JsonRpcContainer.requestPaymentCallback_ = function(callbackId, paymentJson) {
callback = callbackIdStore[callbackId];
if (callback)