A sample App to demonstrate an Access Checkout SDK integration
-
Install dependencies
# Install Cocoapods dependencies for the SDK first cd <access-checkout-ios-root>/AccessCheckoutSDK pod install # Install Cocoapods dependencies for the demo app cd <access-checkout-ios-root>/AccessCheckoutDemo pod install
-
Open project
AccessCheckoutDemo
in XCode- Click on
File > Open
- Select the
<access-checkout-ios-root>/AccessCheckoutSDKDemo/AccessCheckoutDemo.xcworkspace
directory and clickOpen
- Click on
-
In the Project Navigator in XCode, click on the
AccessCheckoutDemo
app -
In the app properties, select the
AccessCheckoutDemo
target underTargets
-
Scroll down to the
User-Defined
properties -
Replace the
ACCESS_CHECKOUT_ID
value by theCheckout ID
that was provided to you when you were on-boarded on Access Worldpay -
To run the demo app, click the
Play
button in the top-left corner of the screen to open the demo app in the simulated device of your choice.
Refer to the Worldpay Developers documentation to find out how to integrate the SDK in your app - https://developer.worldpay.com/docs/access-worldpay/checkout/ios
CI related variables can be assigned within CIVariables.swift. These will be injected by the variable-injector plugin at build time in BitRise. The swift-variable-injector step is configured within the bitrise primary workflow.
Note that because of what looks like a bug, the variable-injector plugin does not seem to replace the variables by their values in PR builds.
By default this demo application uses stubs to emulate Worldpay API services.
They can be disabled by adding the -disableStubs true
command line argument in the AccessCheckoutDemo scheme configuration.