3. Once you have the API key, go to the Grant Permissions option and "View/
edit permissions". Enter the API username and check "SetMobileCheckout"
and "DoMobileCheckoutPayment" options from the list. We will use these
two methods for mobile checkout integration.
4. You will see a confirmation screen as shown in the following screenshot.
Confirm by clicking on the button that says Give Permission.
5. We are now set to integrate with PayPal!
Why This Configuration?
PayPal has excellent security mechanisms. Setting up an API key and permissions on
it allows us to manage our e-commerce stores better. We can grant different levels of
permissions to different API keys. When we pass the API key and user information
to PayPal, it will allow access based on this configuration. Without this configuration,
we won't be able to use Mobile Checkout either. But now that we have configured
our account, let us see how to integrate PayPal in our code.
Chapter 8
[ 141 ]
Mobile Checkout is a Three-Step Flow
Once the customer has ordered her or his pizza, we want to give her or him an option
to make a payment via PayPal. We will pass the order information to PayPal and
update the order status once the payment is received.
Pages:
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188