Native UI Integration
We provide native screens to facilitate the integration of payment functions. You can use these individually, or use all of the prebuilt UI in one flow by following the Integration guide.
Edit shipping info page
presentShippingFlow method to allow users to provide a shipping address as well as select a shipping method. The shipping parameter is optional.
AWShippingViewController *controller = [AWUIContext shippingViewController]; controller.delegate = "The target to handle AWShippingViewControllerDelegate protocol"; controller.shipping = "The shipping address merchant provides"; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:controller]; [self presentViewController:navigationController animated:YES completion:nil];
Use the entire Native UI in one flow
presentPaymentFlow method to complete the entire payment flow. You need to pass in the
AWUIContext *context = [AWUIContext sharedContext]; context.delegate = ”The target to handle AWPaymentResultDelegate protocol”; context.hostViewController = “The host viewController present or push the payment UIs”; context.paymentIntent = “The payment intent merchant provides”; context.shipping = “The shipping address merchant provides”; [context presentPaymentFlow];
You can overwrite the color value in your app.
UIColor *tintColor = [UIColor colorWithRed:97.0f/255.0f green:47.0f/255.0f blue:255.0f/255.0f alpha:1]; [AWXTheme sharedTheme].tintColor = tintColor;