支付宝支付集成

1.流程

 

2.文档地址:https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.YX8QCY&treeId=59&articleId=103675&docType=1

  2.1 从官方demo中导入支付宝库

           

  2.2 导入系统依赖库

    

3.添加pch文件:Supporting Files->cmd+n->other->PCH file->选中工程->Build Settings ->cmd+F->prefix->键入 $(SRCROOT)/工程名/pch文件名

    

4.设置URL scheme 白名单

     

5.设置需要的路径

           

6.点击支付的方法内  写入以下内容

    

    

 

posted @ 2016-04-14 14:45  Bo-tree  阅读(222)  评论(0编辑  收藏  举报