Angular paypall response

46 views
Skip to first unread message

corsaro

unread,
Apr 24, 2014, 1:41:29 PM4/24/14
to ang...@googlegroups.com

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(); 

corsaro

unread,
Apr 26, 2014, 3:45:11 AM4/26/14
to ang...@googlegroups.com


so no suggestions? :(
Reply all
Reply to author
Forward
Message has been deleted
0 new messages