ios - Apple pay sandbox environment testing without any 3rd party payment processor -


is there way test apple pay in sandbox environment? can test dummy data or cut money real card?

i have gone through 2 payment sdk 1 stripe , other braintree

stripe providing sandbox environment in link.

i have ecommerce store app in m using apple pay.

please suggest.

i did implement pay in shopping app using braintree. you're aware when use braintree, got sandbox environment, , production environment. apple pay match behavior, you'll have generate 2 mechantid, 1 sandbox, , 1 prod.

in braintree, you'll link sandbox mechantid in braintree sandbox dashboard, , prod merchantid in braintree production dashboard.

in app, you'll need have (at least) 2 builds configuration, 1 sandbox/debug, 1 production/release. you'll create mechantid constant that:

#if config_release static nsstring *const merchantid = @"merchant.com.yourappname.braintree"; #else static nsstring *const merchantid = @"merchant.com.example.braintree"; #endif 

so when init apple pay sheet, pass merchantid constant , grab right one.

as have having 2 entitlements files, on each configuration pointing right apple pay certificate. (the entitlements generated when toggle capabilities).

the braintree documentation complete , helpful, please take look.

i'm not sure how stripe work, bet management of sandbox/prod works same.

i hope answer question, i'd happy tell more (if can) apple pay if need so.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -