Credit card payment in ios app getting timed out

Tried following combinations:

a)((MobileElement) driver.findElement("//XCUIElementTypeTextField[@value=‘Enter name on card’]")).setValue(“TESTC”) ;

	((MobileElement) driver.findElement("//XCUIElementTypeButton[@name='Next']")).click();
	((MobileElement)driver.findElement(IOSObject_App.txt_cardno)).setValue("4444333322221111")    ; 

b) driver.findElement("//XCUIElementTypeTextField[@value=‘Enter card number’]").click();

I am using the click() command to focus on the desired field else the card name & number are getting printed in the card name field only.

but all the above methods are taking around 7minutes to be executed which leads to payment gateway session timeout. Is there any way which could make the process faster?

Plz help