We will add a separate unique endpoint specifically set for testing TLS check instead of using our conventional sandbox endpoint. TLS ENDPOINT: https://test-api.sandbox.paypal.com To test your own implementation to verify it TLS is successfully supported in your application, you can follow the following steps.
We will create a conventional paypal payment to verify its creation
For Sample Purposes Only.
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
Create Payment using PayPal as payment method
This sample code demonstrates how you can process a PayPal Account based Payment. API used: /v1/payments/payment