Score:0

Redirect to offsite payment gateway when implementing headless commerce

cn flag

I'm implementing a Drupal 9 commerce 2 Headless Project (FrontEnd is an android app written in Kotlin so it does not accept cookies and I work with Tokens). I can access and modify user cart using Commerce Cart API, I also can patch many order information like billing and shipping in a decoupled manner, the only problem is offsite payment plugin posts information (like API Key or Password or ...) to Offsite Gateway in format of a Form with post action equals to Offsite Payment URL, which cause post and redirect to that url, but in a headless approach I do not have access to that form so the question is

How can I Implement an offsite payment gateway in headless aproach?

PS: As my front end does not accept sessions and I'm working with cookies I cant redirect to regular checkout approach in Drupal

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.