Skip to content

Conversation

@PayManiRazor
Copy link
Contributor

  • Add deviceActivity.md with complete Device Activity API reference
  • Add posGateway.md with comprehensive POS Gateway integration guide
  • Update README.md to include new documentation sections
  • Update Python version badge to show 3.5+ compatibility

Features documented:

  • Device Activity APIs (initiate/close checkout, status checking)
  • Order APIs with device_mode support
  • Complete integration workflows
  • Error handling and status management
  • Request/response examples for all endpoints

Note :- Please follow the below points while attaching test cases document link below:

- If label Tested is added then test cases document URL is mandatory.

- Link added should be a valid URL and accessible throughout the org.

- If the branch name contains hotfix / revert by default the BVT workflow check will pass.

Test Case Document URL
Please paste test case document link here....

- Add deviceActivity.md with complete Device Activity API reference
- Add posGateway.md with comprehensive POS Gateway integration guide
- Update README.md to include new documentation sections
- Update Python version badge to show 3.5+ compatibility

Features documented:
- Device Activity APIs (initiate/close checkout, status checking)
- Order APIs with device_mode support
- Complete integration workflows
- Error handling and status management
- Request/response examples for all endpoints
import razorpay

# Initialize client
client = razorpay.Client(auth=('key_id', 'key_secret'), base_url='http://localhost:8080')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is 8080 always the case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, for More client they can use any port, will change this to PORT instead of 8080

)

if result['success']:
print("✅ Checkout completed successfully!")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation


```py
response = client.device_activity.create({
"device_id": "2841158834", # Required for device_mode="wired", optional for device_mode="wireless"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

- Updated posGateway.md to use PORT instead of 8080
- Updated deviceActivity.md to use PORT instead of 8080
- Allows users to configure any port for local development

```py
client.device_activity.create({
"device_id": "2841158834", # Required for device_mode="wired", optional for device_mode="wireless"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, required for wireless optional for wired

- Update comments to show device_id is required for wireless mode
- Update comments to show device_id is optional for wired mode
- Applied changes to deviceActivity.md and posGateway.md
- Move method field inside prefill object and mark as optional
- Make type field optional in initiate_checkout
- Add comprehensive API error codes section for client reference
- Update device mode requirements (wireless requires device_id, wired is optional)
- Remove internal RPGS error codes from client documentation
- Update parameter tables and examples to reflect new structure
Copy link

@srikervs94 srikervs94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve the comments


### Wireless Mode
- **device_mode**: `"wireless"`
- **device_id**: Optional

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this

"name": "Gaurav Kumar",
"email": "gaurav.kumar@example.com",
"contact": "9000090000",
"method": "upi" # Optional: "upi"|"card"|"netbanking"|"wallet"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nb and wallet are not supported for omni yet I think its better to just have upi and card in the comment

- Update device mode requirements: wireless requires device_id, wired is optional
- Remove authentication section from posGateway.md as requested
- Update error handling documentation to reflect correct device_id requirements
- Align documentation with actual API behavior
- Update device mode requirements consistently across both files
- Ensure wireless mode requires device_id, wired mode is optional
- Remove sections that were marked for deletion
- Clean up documentation structure and formatting
- Align all examples with updated requirements
- Complete final adjustments to device activity documentation
- Ensure consistency across all documentation files
@srikervs94 srikervs94 added the TestingNotRequired TestingNotRequired label for BVT label Sep 15, 2025
@PayManiRazor PayManiRazor merged commit 8266419 into master Sep 16, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TestingNotRequired TestingNotRequired label for BVT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants