Embed the Imprint application experience in your iOS app
(minimum support cocoapods version: 1.16.1)
Podfile
Update Package
from the menuImprintConfiguration
with your client_secret
and environment
, then assign additional optional fields as needed.
viewController
: The view controller from which the application flow will be presentedconfiguration
: The previously created object containing your API key and completion handlerPROPERTY NAMES | REQUIRED | TYPE | DESCRIPTION |
---|---|---|---|
client_secret | TRUE | String | Generated through Create Customer Session |
partnerReference | TRUE | String | The unique reference identifier for the partner |
PROPERTY NAMES | TYPE | DESCRIPTION |
---|---|---|
customer_id | String | null | Imprint identifier for customer |
partner_customer_id | String | null | Partner identifier for customer |
payment_method_id | String | null | ID to the payment method of customer |
error_code | ErrorCode | null | Identifier for the specific error encountered |
ENUM | DESCRIPTION |
---|---|
INVALID_CLIENT_SECRET | Indicate Client Secret is invalid |
UNKNOWN_ERROR | Indicate other unexpected error happened |
ENUM | DESCRIPTION |
---|---|
offerAccepted | Application has been approved and credit offer accepted. New cardholder! |
rejected | Application has been rejected by Imprint |
inProgress | Application has been exited, not completed |
error | Invalid request parameters (e.g., invalid token) |