2
A
답변
2
첵이 페이팔 대리자 메서드 나 감사를 위해 일했다
func payPalPaymentViewController(_ paymentViewController: PayPalPaymentViewController, didComplete completedPayment: PayPalPayment)
{
print("PayPal Payment Success !")
paymentViewController.dismiss(animated: true, completion: {() -> Void in
// send completed confirmaion to your server
print("Here is your proof of payment:\n\n\(completedPayment.confirmation)\n\nSend this to your server for confirmation and fulfillment.")
let dict = completedPayment.confirmation
print("dict data is ====%@", dict)
let paymentResultDic = completedPayment.confirmation as NSDictionary
let dicResponse: AnyObject? = paymentResultDic.object(forKey: "response") as AnyObject?
let paycreatetime:String = dicResponse!["create_time"] as! String
let payauid:String = dicResponse!["id"] as! String
let paystate:String = dicResponse!["state"] as! String
let payintent:String = dicResponse!["intent"] as! String
print("id is --->%@",payauid)
print("created time ---%@",paycreatetime)
print("paystate is ----->%@",paystate)
print("payintent is ----->%@",payintent)
})
}
관련 문제
- 1. 스위프트와 키스톤 통합
- 2. PayPal 통합 iOS 8 앱
- 3. Paypal Kinvey 통합
- 4. PayPal 통합 자동 공제
- 5. Paypal 통합
- 6. Parse.com과 Paypal 통합
- 7. PayPal iOS 6의 문제
- 8. 스위프트와 가능성
- 9. IOS 페이팔 통합
- 10. Paypal Express ActiveMerchant 통합
- 11. Paypal 통합 시나리오
- 12. asp.net에서 PayPal 통합
- 13. Paypal 통합 지주 돈
- 14. Iphone5의 PayPal 통합
- 15. Paypal IPN과 MySQL 통합
- 16. Paypal 통합 - GetExpressCheckout
- 17. PayPal ExpressCheckout 통합 문제
- 18. PHP와 PayPal 통합
- 19. Java PayPal 통합
- 20. Paypal 샌드 박스 통합
- 21. PayPal 웹 사이트에 통합
- 22. PayPal 통합 (MECL)
- 23. WSO2 ESb PayPal 통합
- 24. Magento Paypal & CCAvenue 통합
- 25. PayPal 통합 android
- 26. VB.Net PayPal 통합 설명
- 27. 기존 장바구니에 Paypal 통합
- 28. Paypal 장바구니 통합
- 29. Paypal 통합, 쿼리
- 30. Paypal PHP API 통합
확인 만 "completedPayment.confirmation"를 얻을 수 있습니다. –