itachi's avatar

How to test a static request payload?

I am working on PayPal seller onboarding flow. https://developer.paypal.com/docs/multiparty/seller-onboarding/build-onboarding/

As you see in the document I have a static payload to generate a seller signup link.

Where do I write test cases for the payload? Should I write it as a Unit test or an Integration test.

0 likes
2 replies
bobbybouwmann's avatar
Level 88

It depends on what you want to achieve. With a unit test, you can only test if the correct payload is created as expected. With an integration test, you can probably test if the link works as expected.

You can safely assume that the functionality works at the end of PayPal. I wouldn't personally spend too much time on writing integration tests for this.

1 like

Please or to participate in this conversation.