Skip to content

pedrinho/cctexample

Repository files navigation

CCT Example

Simple example of Chrome Custom Tabs usage.

About

In order to improve the security, the PayPal security guidelines demands the use of Chrome Custom Tabs on Android. It is important that the PayPal page where the user input its login information is rendered by CCT. This repository is a simple implementation example that can be used as a reference.

Usage

After opening the app, there will be 2 buttons:

  • The Get Approval URL consumes an endpoint that generates an approval url and fill the text. You can generate an approval url using Postman for instance, but make sure that the return url parameter is set to the "cctexample://return" schema

  • Click on the Open CCT button. The URL provided in the textbox will be launched.

  • After login and sign the billing agreement, the PayPal will redirect to the return url (cctexample://return).

  • The object assigned to the schema will be executed.

Releases

No releases published

Packages

No packages published

Languages