class PaymentMethodService : HttpClient, BaseCoroutineScope
PaymentMethodService VenueNext
Created on 4/9/19. Copyright © 2019 VenueNext Inc. All rights reserved.
<init> |
PaymentMethodService VenueNext PaymentMethodService(context: Context) |
getBraintreeClientToken |
GET Braintree Client Token from API Server fun getBraintreeClientToken(): <ERROR CLASS> |
getPaymentMethod |
Note: Only a single credit card payment method is currently supported fun getPaymentMethod(userId: String): PaymentMethodResponse |
getPaymentMethodAsync |
Note: Only a single credit card payment method is currently supported fun getPaymentMethodAsync(userUuid: String, success: (result: PaymentMethodResponse) -> Unit, error: (e: Throwable) -> Unit): Job |
postCreditCardPaymentMethod |
POST Payment Method to API Server fun postCreditCardPaymentMethod(paymentResult: PaymentResult): <ERROR CLASS> |
removePaymentMethod |
fun removePaymentMethod(userId: String): Unit |
removePaymentMethodAsync |
fun removePaymentMethodAsync(userId: String, success: () -> Unit, error: (e: Throwable) -> Unit): Unit |