@NonNull
    public static SourceParams createThreeDSecureParams(
            @IntRange(from = 0) long amount,
            @NonNull String currency,
            @NonNull String returnUrl,
            @NonNull String cardID) {
        return new SourceParams()
                .setType(Source.THREE_D_SECURE)
                .setCurrency(currency)
                .setAmount(amount)
                .setRedirect(createSimpleMap(FIELD_RETURN_URL, returnUrl))
                .setApiParameterMap(createSimpleMap(FIELD_CARD, cardID));
    }
@ NonNull public static SourceParams createThreeDSecureParams ( @ IntRange ( from = 0 ) long amount , @ NonNull String currency , @ NonNull String returnUrl , @ NonNull String cardID ) { return new SourceParams ( ) . setType ( Source . THREE_D_SECURE ) . setCurrency ( currency ) . setAmount ( amount ) . setRedirect ( createSimpleMap ( FIELD_RETURN_URL , returnUrl ) ) . setApiParameterMap ( createSimpleMap ( FIELD_CARD , cardID ) ) ; }
Create parameters necessary to create a 3D Secure source.

@param amount A positive integer in the smallest currency unit representing the amount to
charge the customer (e.g., 1099 for a €10.99 payment).
@param currency The currency the payment is being created in (e.g., eur).
@param returnUrl The URL the customer should be redirected to after the verification process.
@param cardID The ID of the card source.
@return a {@link SourceParams} object that can be used to create a 3D Secure source

@see <a href="https://stripe.com/docs/sources/three-d-secure">https://stripe.com/docs/sources/three-d-secure</a>