PaymentService
public protocol PaymentService
Base Protocol to get Payment Information
-
Fetches the list of
InsurancePayerassociated with the tenantDeclaration
Swift
func getInsurancePayers(tenant: String, success: @escaping ([InsurancePayer]) -> Void, failure: @escaping (FailedReason) -> Void)Parameters
tenantA string to indicate which tenant you want the list of
InsurancePayerforsuccessA closure called with a list of
InsurancePayerfailureA closure called if any FailedReason errors are returned
-
Validates the coupon code (sometimes called service key) and returns the amount of the coupon
Declaration
Swift
func verifyCouponCode(couponCode: String, success: @escaping (Decimal) -> Void, failure: @escaping (CouponCodeFailedReason) -> Void)Parameters
couponCodeA string to indicate the coupon code (sometimes called service key) used for verification
successA closure called with a Decimal of the coupon amount in dollars. ie. 49.00 for $49
failureA closure called if any CouponCodeFailedReason errors are returned
-
Uploads insurance card images that are saved for the provider to view.
Declaration
Swift
func uploadInsuranceCard(frontImage: UIImage, backImage: UIImage, success: @escaping (String) -> Void, failure: @escaping (InsuranceCardFailedReason) -> Void)Parameters
frontImagean UIImage representing the front of the insurance card
backImagean UIImage representing the back of the insurance card
successa
cardIdString that needs to be used when booking a retail visit with aPaymentMethodofinsuranceImageSelforinsuranceImageOtherfailureA closure called if any InsuranceCardFailedReason errors are returned
View on GitHub
Install in Dash
PaymentService Protocol Reference