Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Param Destegi/Entegrasyonu #258

Open
nuryagdym opened this issue Dec 28, 2024 · 17 comments · May be fixed by #262
Open

Param Destegi/Entegrasyonu #258

nuryagdym opened this issue Dec 28, 2024 · 17 comments · May be fixed by #262

Comments

@nuryagdym
Copy link
Collaborator

Dokumantasyon: https://dev.param.com.tr/tr/api

@esakarya
Copy link

esakarya commented Dec 28, 2024

Tosla' bile param ın altyapısını kullanıyor :)

@crazyshark2
Copy link

Bu destek gelirse çok iyi olur. Bizde param ı bekliyoruz. Şimdiden emeğinize sağlık.

@nuryagdym
Copy link
Collaborator Author

@esakarya elinde calisan kod varsa test ortam bilgileri ve test kart bilgileriyle paylasir misin?

Ben https://dev.param.com.tr/tr/api/odeme burdaki TP_WMD_UCD islemi yapmaya calistim

Server was unable to process request. ---> Object reference not set to an instance of an object.

hatasi aliyorum.

Sayfalarinda test ortam URL'i https://testposws.param.com.tr/turkpos.ws/service_turkpos_prod.asmx bu diyor ama denedigimde bursai hic calismiyor.
Sonra bu https://github.com/PARAMPOS/CMS-Entegrasyon repolarindan bu \
https://test-dmz.param.com.tr/turkpos.ws/service_turkpos_test.asmx?wsdl url'i buldum. Ama bu da hata veriyor.

@esakarya
Copy link

esakarya commented Dec 28, 2024

{
"client_code": "10738",
"client_username": "Test",
"client_password": "Test",
"guid": "0c13d406-873b-403b-9c09-a5766840d98c"
}

Adreslerde şu sekilde

'urls': {'production': 'https://posws.param.com.tr/turkpos.ws/service_turkpos_prod.asmx?WSDL',
'test': 'https://test-dmz.param.com.tr/turkpos.ws/service_turkpos_test.asmx?wsdl',
'gateway': {'production': 'https://posws.param.com.tr/turkpos.ws/service_turkpos_prod.asmx?WSDL',
'test': 'https://test-dmz.param.com.tr/turkpos.ws/service_turkpos_test.asmx?wsdl',
}
}
},

Bu bilgiler testte calisiyor. Elimde calisan python kodu var, isini gorurmu? Mwebin eski surumune benzer bi yapi, bu projeyi pythona cevirip kullaniyorum demistim

@nuryagdym
Copy link
Collaborator Author

nuryagdym commented Dec 28, 2024

@esakarya python kod olur, chat gpt ile donustururum.
API hesap bilgilerin dokumantasyondakiyle ayni.

Ben su veriyi
image

bu https://test-dmz.param.com.tr/turkpos.ws/service_turkpos_test.asmx?wsdl URL'a
soap TP_WMD_UCD method ile gonderiyorum ve yukarda dedigim hatayi aliyorum.

Simdilik TP_WMD_UCD istegi nasil gonderdigini paylasman yeterli.

@esakarya
Copy link

Mail adresin nedir?

@nuryagdym
Copy link
Collaborator Author

@esakarya sanirim sorun cozuldu. Bunlar dokumantasyonlarinda bazi alanlar optional denisler.
Ben de gondermedim o alanlari ondan oluyormus. Optional alanlari bos veri ile gonderince calisti.

@esakarya
Copy link

Tamamdır

@crazyshark2
Copy link

Bu serviste sanırım yakında geliyor harika👍

@esakarya
Copy link

esakarya commented Jan 2, 2025

@nuryagdym Merhaba 258-param-destegi branch kullanılabilir mi?

@nuryagdym
Copy link
Collaborator Author

@esakarya henuz hazir degil, entegrasyonu tamamlamam 1 ay surebilir. En kotu Marta kadar tamamlarim.
Paramin dokumantasyonu iyi ama API sıkıntılı. Biraz ugrastiracak beni.

@esakarya
Copy link

esakarya commented Jan 2, 2025

Aslında apisinde sıkıntı yok da düz soap istekle değil değil nsmapleri tam istiyor.
v2 yi devreye alıcakmısın ?

@nuryagdym
Copy link
Collaborator Author

@esakarya bir odeme icin entegrasyon yapmiyorum, iade, iptal, durum sorgulama, non secure odeme, 3d pay/host odeme...
bunlarin unit testleri de var.

Bu zamana kadar gordugum sikintilar:

  • Banka 3d formu bir durumda HTML form donuyor, baska bir durumda ise URL donuyor. Diger gatewayler genelde xml donuyor. Bu da karmasikligi arttiriyor
  • para birimi farkli olunca farkli request ve tamamen farkli response donuyor.

Daha baska ne sorunlar cikacak bilemedim.

Param v1'de yayina alacagim. v2 ne zaman bitecek belli degil.

@esakarya
Copy link

esakarya commented Jan 2, 2025

Anladım ben pyhton kodları maille gönderdim yardımı dokunur belki.
Teşekkür ettim

@crazyshark2
Copy link

crazyshark2 commented Jan 23, 2025

Ne zaman eklersiniz acaba?

@nuryagdym
Copy link
Collaborator Author

@crazyshark2 90% bitti, 1-2 hafta icinde yayina alirim diye dusunuyorum

nuryagdym pushed a commit that referenced this issue Jan 25, 2025
@nuryagdym nuryagdym linked a pull request Jan 25, 2025 that will close this issue
nuryagdym pushed a commit that referenced this issue Jan 25, 2025
@nuryagdym
Copy link
Collaborator Author

nuryagdym commented Jan 25, 2025

@crazyshark2 @esakarya zamaniniz oldugunda testleri yapar misiniz?

composer require mews/pos:dev-258-param-destegi

sekilde indirebilirsiniz.

Diger gatewaylerden farkli olarak get3DFormData() methodu islem tipe, odeme modele gore string veya array doner. String dondugunde HTML string oluyor ve degeri oldugu gibi echo yapmaniz gerekiyor.

MODEL_3D_HOST (ortak odeme) nedense calismiyor bende, belki prod ortamda calisir.

Test ortamlari genel olarak stabil degil, o yuzden mumkunse prod ortamda testler yapiniz.

Test yaparken, tam olarak hangi islemlerin testini yaptiginizi yazarsaniz sevinirim.

Prod konfigurasiyonu da bilyorsaniz yazar misiniz

        'param-pos'            => [
            'name'              => 'TURK Elektronik Para A.Ş',
            'class'             => Mews\Pos\Gateways\ParamPos::class,
            'gateway_endpoints' => [
                'payment_api'     => 'https://test-dmz.param.com.tr/turkpos.ws/service_turkpos_test.asmx',
                // API URL for 3D host payment
                'payment_api_2'   => 'https://test-pos.param.com.tr/to.ws/Service_Odeme.asmx',
                'gateway_3d_host' => 'https://test-pos.param.com.tr/default.aspx',
            ],
        ],

nuryagdym pushed a commit that referenced this issue Jan 26, 2025
nuryagdym pushed a commit that referenced this issue Jan 28, 2025
nuryagdym pushed a commit that referenced this issue Jan 28, 2025
nuryagdym pushed a commit that referenced this issue Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants