I have implement paypal library for payment in my iphone project.
How can I retrieve transaction id after following method called successfully.
-(void)paymentSuccessWithKey:(NSString *)payKey andStatus:(PayPalPaymentStatus)paymentStatus {
status = PAYMENTSTATUS_SUCCESS;
}
- (void)paymentLibraryExit
{
UIAlertView *alert1 = nil;
switch (status)
{
case PAYMENTSTATUS_SUCCESS:
{
.......
...........
}
...............
..............
}
}
Finally, i got transaction id using paykey by api with following api detail:-
https://www.x.com/developers/paypal/documentation-tools/api/paymentdetails-api-operation
You can get transaction id by parsing data of response of following api request code:-