VenmoButton
@MainActor
public struct VenmoButton : View
Venmo payment button. Available in the colors primary (Venmo blue), black, and white.
-
Creates a Venmo button
Declaration
Swift
@MainActor public init( authorization: String, universalLink: URL, request: BTVenmoRequest, color: VenmoButtonColor? = .blue, width: CGFloat? = 300, completion: @escaping (BTVenmoAccountNonce?, Error?) -> Void )Parameters
authorizationRequired. A Braintree client token or tokenization key.
universalLinkRequired. The URL for the Venmo app to redirect to after user authentication completes.
requestRequired. A Venmo request.
colorOptional. The desired button color with corresponding Venmo logo. Defaults to
.blue.widthOptional. The width of the button. Defaults to 300px.
completionThe completion handler to handle Venmo tokenize request success or failure on button press
-
Declaration
Swift
@MainActor public var body: some View { get }
View on GitHub