java servlet createpaymentrequest

I am writing a JAVA servlet to handle payment processing.  I am kind of new with how to set things like the createpaymentrequest and working with the JSON object methods.  I was able to successfully generate a nonce, send it to the tomcat server in a POST (using AJAX).  I have hit a stumbling block, any help is appreciated, especially if it has code examples on creating the createPaymentRequest.

 

Thank You in advance, Mike

956 Views
Message 1 of 3
Report
2 REPLIES 2
Alumni

Hi there, @AutoSpiderZ 👋 Thanks for reaching out to us here on the Seller Community! Happy to have you join us here. Hopefully this space can prove to be a valuable resource as you learn to grow your business with Square. Welcome! 

 

I've gone ahead and passed your post over to some of our API experts to help get an answer to your question. As soon as I hear back, I will bounce back here and update you accordingly.

 

Thanks for your patience! 

Joe
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
904 Views
Message 2 of 3
Report
Alumni

Thanks for your patience here, @AutoSpiderZ - I appreciate it!

 

I flagged this over to our API team and they were able to point us in a right direction to get your issue solved, but they are requesting more information about what specific issue you are encountering. Could you provide more info about the stumbling block you are running into?

 

In the meantime, our team notified me that we do have a Java sample, but it’s a web based sample, not a “servlet” as you are using. Here is the sample link. Hope this is helpful!

 

I will keep an eye out for your reply. 

Joe
Community Moderator, Square
Sign in and click Mark as Best Answer if my reply answers your question.
894 Views
Message 3 of 3
Report