PayPal SDK + AJAx jquery

Job ID: 34697486

Budget: €30 – €250 EUR

Hi

https://codepen.io/CalebCreep/pen/mdLmQPe

If you check that codepen, we have two buttons:
Credit Card and PayPal

You can see Credit Card is already validated using AJAX.
For view that, we can use two types of credit card:
PAYMENT APPROBED:
Credit Number: 4242 4242 4242 4242
MM / AA: 12/34
CVV: 1234
PAYMENT REJECTED:
Credit Number: 4000 0000 0000 0002
MM / AA: 12/34
CVV: 1234

What I want?
I want, using jquery ajax and paypal library, validate payment and show alert like Credit Card as you can see on codepen (in case payment completed: Payment Completed Successfully, and in case payment failed: Payment Has Been Failed).

Best regards
Related categories: PHP JavaScript AJAX HTML jQuery / Prototype