Skip to content

Conversation

dgeee13
Copy link
Contributor

@dgeee13 dgeee13 commented May 16, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR adds SEK currency for cybersource

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

/payment curl

curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_T2i3ahN91KOsWsk7hGjfY7qN35q2bE2xPIyL0kd8bNDk2rmvMSb4rsrOx4HJoGSE' \ --data-raw '{ "amount": 700, "currency": "SEK", "confirm": true, "payment_link": false, "capture_on": "2029-09-10T10:11:12Z", "amount_to_capture": 700, "name": "John Doe", "email": "[email protected]", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://google.com", "payment_method_data": { "card": { "card_number": "4111 1111 1111 1111", "card_exp_month": "12", "card_exp_year": "30", "card_cvc": "123" }, "billing": { "address": { "line1": "Storgatan 14", "line2": "Lägenhet 67", "city": "Stockholm", "state": " Bourgogne-Franche-Comté", "country": "SE", "zip": "114 55", "first_name": "Max", "last_name": "Mustermann" } } }, "payment_method": "card", "payment_method_type": "credit", "browser_info": { "color_depth": 24, "java_enabled": true, "java_script_enabled": true, "language": "en-GB", "screen_height": 720, "screen_width": 1280, "time_zone": -330, "ip_address": "208.127.127.193", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0" }, "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "order_details": [ { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" }, { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" }, { "product_name": "Tea", "quantity": 1, "amount": 110, "product_img_link": "https://thumbs.dreamstime.com/b/indian-tea-spices-masala-chai-33827904.jpg" } ] }'
Response (currently failing, since test account does not have SEK enabled)
Screenshot 2025-05-19 at 1 17 27 PM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@dgeee13 dgeee13 self-assigned this May 16, 2025
@dgeee13 dgeee13 requested a review from a team as a code owner May 16, 2025 05:31
@dgeee13 dgeee13 added the A-connector-integration Area: Connector integration label May 16, 2025
Copy link

Review changes with  SemanticDiff

Copy link
Contributor

@ShankarSinghC ShankarSinghC left a comment

Choose a reason for hiding this comment

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

Can you add a test case for making a payment in SEK currency?

@likhinbopanna likhinbopanna added this pull request to the merge queue May 19, 2025
Merged via the queue into main with commit 8bceb94 May 19, 2025
24 of 31 checks passed
@likhinbopanna likhinbopanna deleted the addCurrencyCybersource branch May 19, 2025 11:08
pixincreate added a commit that referenced this pull request May 20, 2025
…ss-typos

* 'main' of github.com:juspay/hyperswitch:
  chore(version): 2025.05.20.0
  feat(core): add all_keys_required in confirm and psync payload (#7998)
  fix(connector): [CASHTOCODE] Added supported countries and currencies (#8060)
  feat(connector): [CYBERSOURCE] add SEK currency for cybersource (#8048)
  build(deps): migrate usages of `once_cell` crate to standard library equivalents (#8030)
  feat(core): [Network Tokenization] pre network tokenization (#6873)
  feat(router): add open router integration for debit routing (#7907)
  chore(cypress): Update creds for stripe (#8069)
  chore(version): 2025.05.19.0
iemyashasvi pushed a commit that referenced this pull request May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants