Giter Site home page Giter Site logo

moyasar / moyasar-ruby Goto Github PK

View Code? Open in Web Editor NEW
7.0 10.0 6.0 68 KB

Moyasar Ruby client library

Home Page: https://moyasar.com/docs/api/?ruby

License: MIT License

Ruby 99.64% Shell 0.36%
ruby moyasar-ruby moyasar payment invoice gateway payments credit-card mada sadad

moyasar-ruby's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moyasar-ruby's Issues

Wrong card number throw NoMethodError

When i use wrong credit card number i didn't get error message and i get exception

 NoMethodError: undefined method `keys' for "'unknown' is not a valid company":String

Invalid sadad user name get Can't find SOAP body

When i enter invalid sadad user name EX: dddddddd. I get error as bellow

or detected, rethrowing. Caught exception and rethrowing. Caught exception and rethrowing. Caught exception and rethrowing. Can't find SOAP body. CheckOutAcquirerService_Handler.InitiateCheckOutMerchant.InitiateCheckOutMerchantProcessor.SADADPayment_Common_Processor.SADAD_Common_Processor.SOAPRequestProcessor.Extract

Sadad: Technical Error

I try to create a payment using sadad. i sent parameters according to docs.
I get Technical error

Bellow is response of returned object

<Moyasar::Payment:0x007f8c38e345b0 @source=#<Moyasar::Sadad:0x007f8c38e34290 @username="xxxxxxxx", @error_code="E999999", @message="Technical Error Occured", @transaction_id=nil, @transaction_url=nil>, @id="951b458a-4cda-4d90-9f25-1470ec3ce485", @status="failed", @amount=84235, @fee=0, @currency="SAR", @refunded=0, @refunded_at=nil, @description="xxxxxxx", @amount_format="842.35 SAR", @fee_format="0.00 SAR", @refunded_format="0.00 SAR", @invoice_id=nil, @ip="51.36.57.51", @callback_url="http://localhost:3000/xxxxxx", @created_at="2018-02-26T19:42:52.146Z", @updated_at="2018-02-26T19:42:53.439Z">

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.