Hi all,
I have the shopping cart with angularjs and have this part the code for 
chckout with paypal so the problem is i don t know the mode for have the 
response back for know if the transaction its complete and success, with 
angular its possible?
OR
would be that the script could send a notification email

Thanks

// item data
for (var i = 0; i < this.items.length; i++) {
var item = this.items[i];
var ctr = i + 1;
data["item_number_" + ctr] = item.code;
data["item_name_" + ctr] = item.name;
data["quantity_" + ctr] = item.quantity;
data["amount_" + ctr] = item.price.toFixed(2);
}

// build form
var form = $('<form/></form>');
//    form.attr("action", "https://www.paypal.com/cgi-bin/webscr";);
form.attr("action", "https://www.sandbox.paypal.com/us/cgi-bin/webscr";);
form.attr("method", "POST");
form.attr("style", "display:none;");
this.addFormFields(form, data);
this.addFormFields(form, parms.options);
$("body").append(form);

// submit form
this.clearCart = clearCart == null || clearCart;
form.submit();
form.remove(); 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to